[vlc-commits] contrib: bootstrap: exit on error

Rémi Denis-Courmont git at videolan.org
Thu Mar 21 20:09:09 CET 2013


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar 21 21:06:07 2013 +0200| [c6403f560ef707b84d6abebb76d758249b37cafe] | committer: Rémi Denis-Courmont

contrib: bootstrap: exit on error

(cherry picked from commit 600fae99e5d3e0ded342fc9da4aca1c8f65867ca)

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

 contrib/bootstrap |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/bootstrap b/contrib/bootstrap
index 7a1b5d7..2829641 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -113,7 +113,7 @@ fi
 # Prepare files
 #
 echo "Creating configuration file... config.mak"
-exec 3>config.mak
+exec 3>config.mak || exit $?
 cat >&3 << EOF
 # This file was automatically generated.
 # Any change will be overwritten if ../bootstrap is run again.
@@ -214,7 +214,7 @@ esac
 # Results output
 #
 test -e Makefile && unlink Makefile
-ln -sf ../../contrib/src/main.mak Makefile
+ln -sf ../../contrib/src/main.mak Makefile || exit $?
 cat << EOF
 Bootstrap completed.
 
@@ -232,4 +232,4 @@ Other targets:
  * make package      prepare prebuilt packages
 EOF
 
-mkdir -p ../../contrib/tarballs
+mkdir -p ../../contrib/tarballs || exit $?



More information about the vlc-commits mailing list