mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Allow running autogen.sh from the build directory by cd'ing into the source tree.
The source tree is either $srcdir, `dirname $0` or . git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16174 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
51a5be3759
commit
dab7f892d7
19
autogen.sh
19
autogen.sh
@ -1,8 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Run this to generate all the initial makefiles, etc.
|
||||
|
||||
# Set ${srcdir} to .
|
||||
: ${srcdir=.}
|
||||
if test -z "$srcdir" ; then srcdir=`dirname $0` ; fi
|
||||
if test -z "$srcdir" ; then srcdir=. ; fi
|
||||
cd $srcdir
|
||||
|
||||
DIE=0
|
||||
|
||||
@ -190,13 +191,11 @@ esac
|
||||
# All programs are available. So now actually call them in the
|
||||
# required order.
|
||||
|
||||
dr=${srcdir}
|
||||
|
||||
echo "Creating $dr/po/POTFILES.in ..."
|
||||
test -r $dr/po/POTFILES.in || touch $dr/po/POTFILES.in
|
||||
test -r po/POTFILES.in || touch po/POTFILES.in
|
||||
|
||||
echo "Creating $dr/aclocal.m4 ..."
|
||||
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
|
||||
test -r aclocal.m4 || touch aclocal.m4
|
||||
|
||||
echo "Running ${GLIB_GETTEXTIZE} --force --copy ... "
|
||||
echo "GnuCash note: Please ignore the output of ${GLIB_GETTEXTIZE} below!"
|
||||
@ -204,11 +203,11 @@ echo "no" | ${GLIB_GETTEXTIZE} --force --copy
|
||||
echo "GnuCash note: Please ignore the output of ${GLIB_GETTEXTIZE} above!"
|
||||
echo
|
||||
|
||||
echo "Ensure $dr/aclocal.m4 is writable ..."
|
||||
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
|
||||
echo "Ensure aclocal.m4 is writable ..."
|
||||
test -r aclocal.m4 && chmod u+w aclocal.m4
|
||||
|
||||
echo "Ensure $dr/po/POTFILES.in is writable ..."
|
||||
test -r $dr/po/POTFILES.in && chmod u+w $dr/po/POTFILES.in
|
||||
echo "Ensure po/POTFILES.in is writable ..."
|
||||
test -r po/POTFILES.in && chmod u+w po/POTFILES.in
|
||||
|
||||
echo "Running ${INTLTOOLIZE} --force --copy ..."
|
||||
${INTLTOOLIZE} --force --copy || \
|
||||
|
Loading…
Reference in New Issue
Block a user