adjust build helper to jump into the right directory

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-06-20 09:24:05 +02:00
parent 5fb66cd314
commit e569e0546a

View file

@ -21,8 +21,11 @@
# This file contains the heavy lifting found usually in the Makefile # This file contains the heavy lifting found usually in the Makefile
# #
basedir=${0%/*} basedir=${0%/*}/../
version=$(cd "$basedir" && git describe) # Change to checkout directory
cd "$basedir"
version=$(git describe)
# Manpage and HTML # Manpage and HTML
A2XM="a2x -f manpage --no-xmllint -a encoding=UTF-8" A2XM="a2x -f manpage --no-xmllint -a encoding=UTF-8"
@ -42,9 +45,6 @@ MAN1DSTDIR=${MANDIR}/man1
MAN7DSTDIR=${MANDIR}/man7 MAN7DSTDIR=${MANDIR}/man7
SPEECHESDIR=docs/speeches SPEECHESDIR=docs/speeches
# Change to checkout directory
cd "$basedir"
case "$1" in case "$1" in
manbuild) manbuild)
trap abort INT trap abort INT