Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-csharp / autogen.sh
blob09596de491cf47fe75b1917998df95ba4d834b82
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 ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/nls.m4 m4/nls.m4
27 cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/po.m4 m4/po.m4
28 cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/progtest.m4 m4/progtest.m4
29 cp -p ${GETTEXTSRCPODIR-$GETTEXT_TOPSRCDIR/gettext-runtime/po}/remove-potcdate.sin po/remove-potcdate.sin
31 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/gnulib-m4}/csharpcomp.m4 m4/csharpcomp.m4
32 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/gnulib-m4}/csharpexec.m4 m4/csharpexec.m4
33 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharpexec-test.exe m4/csharpexec-test.exe
34 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/gnulib-m4}/csharp.m4 m4/csharp.m4
35 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/build-aux}/csharpcomp.sh.in csharpcomp.sh.in
36 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/build-aux}/csharpexec.sh.in csharpexec.sh.in
38 aclocal -I m4
40 autoconf
42 automake -a -c
44 ./configure
45 cd po
46 make update-po
47 cd ..
48 make distclean