Add macro for N_ for marking string for translation
[platform/upstream/enlightenment.git] / autogen.sh
1 #!/bin/sh
2
3 rm -rf autom4te.cache
4 rm -f aclocal.m4 ltmain.sh
5
6 touch README
7
8 echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1
9 echo "Running autoheader..." ; autoheader || exit 1
10 echo "Running autoconf..." ; autoconf || exit 1
11 echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
12 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
13 echo "Generating gettext enlightenment.pot template"; \
14 xgettext \
15 -n \
16 -C \
17 -d enlightenment \
18 -p po \
19 --copyright-holder="Enlightenment development team" \
20 --foreign-user \
21 --msgid-bugs-address="enlightenment-devel@lists.sourceforge.net" \
22 -k -k_ -kd_ -kN_ \
23 --from-code=UTF-8 \
24 -o enlightenment.pot \
25 `find . -name "*.[ch]" -print` || exit 1
26
27 if [ -z "$NOCONFIGURE" ]; then
28         ./configure "$@"
29 fi