No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / examples / hello-c++-kde / autogen.sh
blobaec54bee116cfa63da568f72459952583ba82af6
1 #!/bin/sh
2 # Example for use of GNU gettext.
3 # Copyright (C) 2003-2004 Free Software Foundation, Inc.
4 # This file is in the public domain.
6 # Script for regenerating all autogenerated files.
8 if test "$1" = fromscratch; then
10 kdedir=
11 for d in /usr/lib/kde /usr/local/kde /usr/local /usr/kde /usr /opt/kde3 /opt/kde /suse/opt/kde3 $KDEDIR; do
12 if test -f $d/share/apps/kdelibs/admin/cvs.sh; then
13 kdedir=$d
14 break
16 done
17 if test -z "$kdedir"; then
18 echo "*** KDE directory not found. Try setting KDEDIR." 1>&2
19 exit 1
22 cp -a $kdedir/share/apps/kdelibs/admin .
23 sed -e s/AC_FOREACH/INCOMPATIBLE_FOREACH/g < $kdedir/share/apps/kdelibs/admin/acinclude.m4.in > admin/acinclude.m4.in
24 sed -e 's/automake\*1.6/automake\*1.[678] | automake\*1.[678]/' < admin/cvs.sh > admin/cvs.sh.new
25 mv admin/cvs.sh.new admin/cvs.sh
29 autopoint -f # was: gettextize -f -c
30 mv config.rpath admin/config.rpath
31 rm -f mkinstalldirs
32 rm po/Makevars.template
33 rm po/Rules-quot
34 rm po/boldquot.sed
35 rm po/en@boldquot.header
36 rm po/en@quot.header
37 rm po/insert-header.sin
38 rm po/quot.sed
40 sh admin/cvs.sh cvs
42 cd po
43 for f in *.po; do
44 if test -r "$f"; then
45 lang=`echo $f | sed -e 's,\.po$,,'`
46 msgfmt -c -o $lang.gmo $lang.po
48 done
49 cd ..