autogen.sh: pre-create some dirs / files
if test "$1" = "po" ; then
# Before creating a release you might want to update the po files
test -d "po/" || exit
+ #git clean -dfx
test -f ./configure || ./autogen.sh
test -f ./po/Makefile || ./configure
+ find po -name '*.pot' -delete # updates don't happen if pot files already exist...
make -C po update-po
# cleanup
rm -f po/*.po~
- sed -i '/#~ /d' po/*.po
+ #sed -i '/#~ /d' po/*.po
#git clean -dfx
exit
fi
@@ -68,6 +70,18 @@ if test "$1" == "verbose" || test "$1" == "--verbose" ; then
verbose2='--debug'
fi
+# pre-create some dirs / files
+auxdir='.'
+if grep -q "AC_CONFIG_AUX_DIR" configure.ac ; then
+ auxdir="$(grep AC_CONFIG_AUX_DIR configure.ac | cut -f 2 -d '[' | cut -f 1 -d ']')"
+fi
+mkdir -p ${auxdir}
+touch ${auxdir}/config.rpath
+m4dir="$(grep AC_CONFIG_MACRO_DIR configure.ac | cut -f 2 -d '[' | cut -f 1 -d ']')"
+if test -n "$m4dir" ; then
+ mkdir -p ${m4dir}
+fi
+
# Get all required m4 macros required for configure
$LIBTOOLIZE ${verbose} --copy --force || exit 1
$ACLOCAL ${verbose} || exit 1
@@ -76,11 +90,6 @@ $ACLOCAL ${verbose} || exit 1
$AUTOHEADER ${verbose} --force || exit 1
# Generate Makefile.in's
-auxdir='.'
-if grep "AC_CONFIG_AUX_DIR" configure.ac ; then
- auxdir="$(grep AC_CONFIG_AUX_DIR configure.ac | cut -f 2 -d '[' | cut -f 1 -d ']')"
-fi
-touch ${auxdir}/config.rpath
$AUTOMAKE ${verbose} --add-missing --copy --force || exit 1
if grep -q "IT_PROG_INTLTOOL" configure.ac ; then
