xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-csharp/autogen.sh (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1#!/bin/sh
2# Example for use of GNU gettext.
3# Copyright (C) 2003-2006 Free Software Foundation, Inc.
4# This file is in the public domain.
5#
6# Script for regenerating all autogenerated files.
7
8if test -r ../Makefile.am; then
9  # Inside the gettext source directory.
10  GETTEXT_TOPSRCDIR=../../..
11else
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
24  fi
25fi
26
27cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/nls.m4 m4/nls.m4
28cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/po.m4 m4/po.m4
29cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/progtest.m4 m4/progtest.m4
30cp -p ${GETTEXTSRCPODIR-$GETTEXT_TOPSRCDIR/gettext-runtime/po}/remove-potcdate.sin po/remove-potcdate.sin
31
32cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/gnulib-m4}/csharpcomp.m4 m4/csharpcomp.m4
33cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/gnulib-m4}/csharpexec.m4 m4/csharpexec.m4
34cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharpexec-test.exe m4/csharpexec-test.exe
35cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/gnulib-m4}/csharp.m4 m4/csharp.m4
36cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/build-aux}/csharpcomp.sh.in csharpcomp.sh.in
37cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/build-aux}/csharpexec.sh.in csharpexec.sh.in
38
39aclocal -I m4
40
41autoconf
42
43automake -a -c
44
45./configure
46cd po
47make update-po
48cd ..
49make distclean
50