[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
Thu Mar 6 22:16:07 CET 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Mar  5 22:34:00 2008 +0100| [74e8b02dc79b147aa7de80c2cc62c46d5a41fbaa]

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=74e8b02dc79b147aa7de80c2cc62c46d5a41fbaa
---

 configure.ac |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 34ffa0d..265317d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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 "




More information about the vlc-devel mailing list