Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-c++ / autogen.sh
blob0332a9b2187ea8a126f01eabb44fe6771dbeb663
1 #!/bin/sh
2 # Example for use of GNU gettext.
3 # This file is in the public domain.
5 # Script for regenerating all autogenerated files.
7 if test -r ../Makefile.am; then
8 # Inside the gettext source directory.
9 GETTEXT_TOPSRCDIR=../../..
10 else
11 if test -r ../Makefile; then
12 # Inside a gettext build directory.
13 GETTEXT_TOOLS_SRCDIR=`sed -n -e 's,^top_srcdir *= *\(.*\)$,\1,p' ../Makefile`
14 # Adjust a relative top_srcdir.
15 case $GETTEXT_TOOLS_SRCDIR in
16 /*) ;;
17 *) GETTEXT_TOOLS_SRCDIR=../$GETTEXT_TOOLS_SRCDIR ;;
18 esac
19 GETTEXT_TOPSRCDIR=$GETTEXT_TOOLS_SRCDIR/../..
20 else
21 # Installed under ${prefix}/share/doc/gettext/examples.
22 . ../installpaths
26 cp -p ${GETTEXTSRCDIR-$GETTEXT_TOPSRCDIR/gettext-tools/gnulib-lib}/gettext.h gettext.h
28 autopoint -f # was: gettextize -f -c
29 rm po/Makevars.template
30 rm po/Rules-quot
31 rm po/boldquot.sed
32 rm po/en@boldquot.header
33 rm po/en@quot.header
34 rm po/insert-header.sin
35 rm po/quot.sed
37 aclocal -I m4
39 autoconf
41 automake -a -c
43 cd po
44 for f in *.po; do
45 lang=`echo $f | sed -e 's,\.po$,,'`
46 msgfmt -c -o $lang.gmo $lang.po
47 done
48 cd ..