]> git.sesse.net Git - vlc/commitdiff
Make ./compile script return the make return code, storing the value in a temporary...
authorRafaël Carré <funman@videolan.org>
Wed, 5 Mar 2008 21:34:00 +0000 (22:34 +0100)
committerRafaël Carré <funman@videolan.org>
Thu, 6 Mar 2008 21:15:57 +0000 (22:15 +0100)
configure.ac

index 34ffa0d7da7f1cc9152a51d0ed89586d6a927276..265317df3b0ed59f249850950252cb98b4c72192 100644 (file)
@@ -6271,9 +6271,14 @@ dnl for a in `./vlc-config --target plugin` ; do echo $a; done | sed -e 's,modul
 dnl Shortcut to nice compile message
 rm -f compile
 echo '#! /bin/sh' >compile
-
-echo "PATH=$PATH LANG=C make \$@ 2>&1| \\" >> compile
-echo '`sed -ne "s/^top_srcdir *= *//p" < Makefile`/extras/buildsystem/make.pl' >> compile
+echo rm -f .error\$\$ >>compile
+echo ERROR=0 >>compile
+echo export PATH=$PATH LANG=C >>compile
+echo "(make \$@ 2>&1 || touch .error\$\$)| \\" >>compile
+echo '`sed -ne "s/^top_srcdir *= *//p" < Makefile`/extras/buildsystem/make.pl' >>compile
+echo test -f .error\$\$ \&\& ERROR=1 >>compile
+echo rm -f .error\$\$ >>compile
+echo exit \$ERROR >>compile
 chmod a+x compile
 
 printf "