• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gettext-tools/examples/hello-c/
1#!/bin/sh
2# Example for use of GNU gettext.
3# This file is in the public domain.
4#
5# Script for regenerating all autogenerated files.
6
7if test -r ../Makefile.am; then
8  # Inside the gettext source directory.
9  GETTEXT_TOPSRCDIR=../../..
10else
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
23  fi
24fi
25
26cp -p ${GETTEXTSRCDIR-$GETTEXT_TOPSRCDIR/gettext-tools/gnulib-lib}/gettext.h gettext.h
27
28autopoint -f # was: gettextize -f -c
29rm po/Makevars.template
30rm po/Rules-quot
31rm po/boldquot.sed
32rm po/en@boldquot.header
33rm po/en@quot.header
34rm po/insert-header.sin
35rm po/quot.sed
36
37aclocal -I m4
38
39autoconf
40
41automake -a -c
42
43cd po
44for f in *.po; do
45  if test -r "$f"; then
46    lang=`echo $f | sed -e 's,\.po$,,'`
47    msgfmt -c -o $lang.gmo $lang.po
48  fi
49done
50cd ..
51