From e569e0546acd06ae67aad92fa1c7f1a380807508 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 20 Jun 2013 09:24:05 +0200 Subject: [PATCH] adjust build helper to jump into the right directory Signed-off-by: Nico Schottelius --- bin/build-helper | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/build-helper b/bin/build-helper index dd0d5d93..c1c65676 100755 --- a/bin/build-helper +++ b/bin/build-helper @@ -21,8 +21,11 @@ # This file contains the heavy lifting found usually in the Makefile # -basedir=${0%/*} -version=$(cd "$basedir" && git describe) +basedir=${0%/*}/../ +# Change to checkout directory +cd "$basedir" + +version=$(git describe) # Manpage and HTML A2XM="a2x -f manpage --no-xmllint -a encoding=UTF-8" @@ -42,9 +45,6 @@ MAN1DSTDIR=${MANDIR}/man1 MAN7DSTDIR=${MANDIR}/man7 SPEECHESDIR=docs/speeches -# Change to checkout directory -cd "$basedir" - case "$1" in manbuild) trap abort INT