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
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
17 if test -z "$kdedir"; then
18 echo "*** KDE directory not found. Try setting KDEDIR." 1>&2
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
32 rm po
/Makevars.template
35 rm po
/en@boldquot.header
37 rm po
/insert-header.sin
45 lang
=`echo $f | sed -e 's,\.po$,,'`
46 msgfmt
-c -o $lang.gmo
$lang.po