No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / examples / hello-c++ / autogen.sh
blob272786729e31998b3528c6da31b281379065ce27
1 #!/bin/sh
2 # Example for use of GNU gettext.
3 # Copyright (C) 2003-2005 Free Software Foundation, Inc.
4 # This file is in the public domain.
6 # Script for regenerating all autogenerated files.
8 if test -r ../Makefile.am; then
9 # Inside the gettext source directory.
10 GETTEXT_TOPSRCDIR=../../..
11 else
12 if test -r ../Makefile; then
13 # Inside a gettext build directory.
14 GETTEXT_TOOLS_SRCDIR=`sed -n -e 's,^top_srcdir *= *\(.*\)$,\1,p' ../Makefile`
15 # Adjust a relative top_srcdir.
16 case $GETTEXT_TOOLS_SRCDIR in
17 /*) ;;
18 *) GETTEXT_TOOLS_SRCDIR=../$GETTEXT_TOOLS_SRCDIR ;;
19 esac
20 GETTEXT_TOPSRCDIR=$GETTEXT_TOOLS_SRCDIR/..
21 else
22 # Installed under ${prefix}/share/doc/gettext/examples.
23 . ../installpaths
27 cp -p ${GETTEXTSRCDIR-$GETTEXT_TOPSRCDIR/gettext-tools/lib}/gettext.h gettext.h
29 autopoint -f # was: gettextize -f -c
30 rm po/Makevars.template
31 rm po/Rules-quot
32 rm po/boldquot.sed
33 rm po/en@boldquot.header
34 rm po/en@quot.header
35 rm po/insert-header.sin
36 rm po/quot.sed
38 aclocal -I m4
40 autoconf
42 automake -a -c
44 cd po
45 for f in *.po; do
46 lang=`echo $f | sed -e 's,\.po$,,'`
47 msgfmt -c -o $lang.gmo $lang.po
48 done
49 cd ..