[MPlayer-dev-eng] RE: gmake fails if I use --language=de

Diego Biurrun diego at biurrun.de
Fri Oct 31 12:38:40 CET 2003


Tomi Ollila writes:
 > > On Thu, Oct 30, 2003 at 02:44:57AM +0100, Diego Biurrun wrote:
 > > > Arpi writes:
 > > >  > imho that script doesnt depend on bash at all, so change it to /bin/sh
 > > >  > if it's false (it depends on bash) then fix teh script...
 > > >  > its a very important script (is run by all non-english compile)
 > > >  > so it shouldnt depend on it
 > > > 
 > > > The problem is the use of 'read -r'.
 > 
 > I tested the following in help/help_diffs.sh:
 > 
 > #while read -r line; do
 > sed 's/\\/\\\\/g' | while read line; do
 > 
 > Then I ran (on Fedora 0.95):
 > 
 > for i in *.h
 > do
 > ./help_diff.sh.~1~ $i <help_mp-en.h >>! orig
 > done
 > 
 > and
 > 
 > for i in *.h
 > do
 > ./help_diff.sh $i <help_mp-en.h >>! changed
 > done
 > 
 > $ ls -l orig changed
 > -rw-r--r--    1 too      too         46089 Oct 30 08:01 changed
 > -rw-r--r--    1 too      too         46089 Oct 30 08:05 orig
 > 
 > $ sha1sum orig changed
 > 9afbeae441a252fc37801f3956e3df284b56ed0a  changed
 > 9afbeae441a252fc37801f3956e3df284b56ed0a  orig
 > 
 > 
 > So that might be one working solution.

This looks interesting and it does work under Linux (ash, bash, zsh -
csh and tcsh never worked), MinGW as before and under Cygwin, which it
did not before, but it creates wrong output under Solaris, where it
failed to run before :-(

That's all I can test atm, but it is not completely satisfactory.

Diego



More information about the MPlayer-dev-eng mailing list