2006-07-07 10:15:25 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
rm -Rf aclocal.m4 autom4te.cache/ ltmain.sh config.log config.status config.cache configure configure.scan libtool Makefile \
|
|
|
|
data/Makefile.in data/Makefile \
|
|
|
|
data/images/Makefile.in data/images/Makefile \
|
|
|
|
data/themes/Makefile.in data/themes/Makefile \
|
|
|
|
data/themes/minimal/Makefile.in data/themes/minimal/Makefile \
|
|
|
|
src/Makefile src/Makefile.in \
|
2007-05-27 03:31:24 -07:00
|
|
|
src/module/Makefile src/module/Makefile.in \
|
|
|
|
po/Makefile
|
2006-07-07 10:15:25 -07:00
|
|
|
|
2007-03-31 16:53:29 -07:00
|
|
|
echo "Running autopoint..." ; autopoint -f || :
|
2007-11-07 20:56:54 -08:00
|
|
|
echo "Running aclocal..." ; aclocal -I m4 $ACLOCAL_FLAGS || exit 1
|
2006-07-07 10:15:25 -07:00
|
|
|
echo "Running autoheader..." ; autoheader || exit 1
|
|
|
|
echo "Running autoconf..." ; autoconf || exit 1
|
|
|
|
echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
|
|
|
|
echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
|
2007-05-27 03:31:24 -07:00
|
|
|
echo "Generating gettext photo.pot template"; \
|
|
|
|
xgettext \
|
|
|
|
--output photo.pot \
|
|
|
|
--output-dir=po \
|
|
|
|
--language=C \
|
|
|
|
--add-location \
|
|
|
|
--keyword=D_ \
|
|
|
|
--sort-by-file \
|
|
|
|
--copyright-holder="TODO" \
|
|
|
|
--foreign-user \
|
|
|
|
`find . -name "*.[ch]" -print` || exit 1
|
2006-07-07 10:15:25 -07:00
|
|
|
|
|
|
|
if [ -z "$NOCONFIGURE" ]; then
|
|
|
|
./configure "$@"
|
|
|
|
fi
|