From c3ae4aaac9f0b168aed063d3e86c5196608eaba1 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 15 Apr 2015 00:17:26 +0200 Subject: Move more to git, add submodules, fix build script, change hgignore to gitignore --- main/misc/build-native.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main/misc') diff --git a/main/misc/build-native.sh b/main/misc/build-native.sh index 7382efc9..af7c12c8 100755 --- a/main/misc/build-native.sh +++ b/main/misc/build-native.sh @@ -4,7 +4,7 @@ set -e # Generate git config if the openvpn directory is checked out from git -if [ -d openvpn/.git ]; then +if [ -e openvpn/.git ]; then GIT=git cd openvpn CONFIGURE_GIT_CHFILES=$($GIT diff-files --name-status -r --ignore-submodules --quiet -- || echo "+") @@ -20,6 +20,9 @@ if [ -d openvpn/.git ]; then rm -f config-version.h.tmp fi cd .. +else + echo "Cannot find .git directory in openvpn, aborting" + exit 1 fi if [ "x$1" = "x" ]; then -- cgit v1.2.3