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=../../..
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
17 *) GETTEXT_TOOLS_SRCDIR=../$GETTEXT_TOOLS_SRCDIR ;;
19 GETTEXT_TOPSRCDIR=$GETTEXT_TOOLS_SRCDIR/../..
21 # Installed under ${prefix}/share/doc/gettext/examples.
26 cp -p ${GETTEXTSRCPODIR-$GETTEXT_TOPSRCDIR/gettext-runtime/po}/remove-potcdate.sin po/remove-potcdate.sin