Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-c++-kde / autogen.sh
blobded134bcec7a712fe859ba20039fa45d09cedb4e
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 "$1" = fromscratch; then
9 kdedir=
10 for d in /usr/lib/kde /usr/local/kde /usr/local /usr/kde /usr /opt/kde3 /opt/kde /suse/opt/kde3 $KDEDIR; do
11 if test -f $d/share/apps/kdelibs/admin/cvs.sh; then
12 kdedir=$d
13 break
15 done
16 if test -z "$kdedir"; then
17 echo "*** KDE directory not found. Try setting KDEDIR." 1>&2
18 exit 1
21 cp -a $kdedir/share/apps/kdelibs/admin .
22 sed -e s/AC_FOREACH/INCOMPATIBLE_FOREACH/g < $kdedir/share/apps/kdelibs/admin/acinclude.m4.in > admin/acinclude.m4.in
23 sed -e 's/automake\*1.6/automake\*1.[678] | automake\*1.[678]/' < admin/cvs.sh > admin/cvs.sh.new
24 mv admin/cvs.sh.new admin/cvs.sh
28 autopoint -f # was: gettextize -f -c
29 mv config.rpath admin/config.rpath
30 rm -f mkinstalldirs
31 rm po/Makevars.template
32 rm po/Rules-quot
33 rm po/boldquot.sed
34 rm po/en@boldquot.header
35 rm po/en@quot.header
36 rm po/insert-header.sin
37 rm po/quot.sed
39 sh admin/cvs.sh cvs
41 cd po
42 for f in *.po; do
43 if test -r "$f"; then
44 lang=`echo $f | sed -e 's,\.po$,,'`
45 msgfmt -c -o $lang.gmo $lang.po
47 done
48 cd ..