[vlc-devel] commit: Make ./compile script return the make return code, storing the value in a temporary hidden file ( using the shell PID to guarantee uniqueness) ( Rafaël Carré )

git version control git at videolan.org
Fri Aug 1 17:54:00 CEST 2008


vlc | branch: 0.8.6-bugfix | Rafaël Carré <funman at videolan.org> | Wed Mar  5 22:34:00 2008 +0100| [4a88e4656652938df60504670082064fc413b979] | committer: Rafaël Carré 

Make ./compile script return the make return code, storing the value in a temporary hidden file (using the shell PID to guarantee uniqueness)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a88e4656652938df60504670082064fc413b979
---

 configure.ac |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index f816ccf..0403c25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5674,9 +5674,15 @@ 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 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/make.pl' >>compile
+echo test -f .error\$\$ \&\& ERROR=1 >>compile
+echo rm -f .error\$\$ >>compile
+echo exit \$ERROR >>compile
 
-echo "PATH=$PATH LANG=C make \$* 2>&1| \\" >> compile
-echo '`sed -ne "s/^top_srcdir *= *//p" < Makefile`/extras/make.pl' >> compile
 chmod a+x compile
 
 printf "




More information about the vlc-devel mailing list