summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2017-09-10 10:08:42 +0200
committerAndreas Politz <politza@hochschule-trier.de>2017-09-10 10:08:42 +0200
commitb9ec3abce0fa436f03f619fa1b96c5ea9fd9b68f (patch)
tree2e6cecc809e80c0f188dc1ae1223aaf629de44ba /server
parent8c4b8eb1d45406de4c42c9745c2af064296f560b (diff)
autobuild in the correct directory
Diffstat (limited to 'server')
-rwxr-xr-xserver/autobuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/autobuild b/server/autobuild
index 8104947..1f39b52 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -237,6 +237,16 @@ fi
echo "---------------------------"
echo " Configuring and compiling "
echo "---------------------------"
+
+# Try to be in the correct directory.
+if which dirname >/dev/null 2>&1; then
+ cd "$(dirname "$0")" || {
+ echo "Failed to cd to the src directory" 2>&1
+ exit 1
+ }
+fi
+
+# Create the configure script.
if ! [ -f ./configure ]; then
assert_program autoreconf
echo "autoreconf -i"