Commit c6403f56 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: bootstrap: exit on error

(cherry picked from commit 600fae99e5d3e0ded342fc9da4aca1c8f65867ca)
parent f1082d90
...@@ -113,7 +113,7 @@ fi ...@@ -113,7 +113,7 @@ fi
# Prepare files # Prepare files
# #
echo "Creating configuration file... config.mak" echo "Creating configuration file... config.mak"
exec 3>config.mak exec 3>config.mak || exit $?
cat >&3 << EOF cat >&3 << EOF
# This file was automatically generated. # This file was automatically generated.
# Any change will be overwritten if ../bootstrap is run again. # Any change will be overwritten if ../bootstrap is run again.
...@@ -214,7 +214,7 @@ esac ...@@ -214,7 +214,7 @@ esac
# Results output # Results output
# #
test -e Makefile && unlink Makefile test -e Makefile && unlink Makefile
ln -sf ../../contrib/src/main.mak Makefile ln -sf ../../contrib/src/main.mak Makefile || exit $?
cat << EOF cat << EOF
Bootstrap completed. Bootstrap completed.
...@@ -232,4 +232,4 @@ Other targets: ...@@ -232,4 +232,4 @@ Other targets:
* make package prepare prebuilt packages * make package prepare prebuilt packages
EOF EOF
mkdir -p ../../contrib/tarballs mkdir -p ../../contrib/tarballs || exit $?
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment