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 "$1" = fromscratch; then 8 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 14 fi 15 done 16 if test -z "$kdedir"; then 17 echo "*** KDE directory not found. Try setting KDEDIR." 1>&2 18 exit 1 19 fi 20 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 25 26fi 27 28autopoint -f # was: gettextize -f -c 29mv config.rpath admin/config.rpath 30rm -f mkinstalldirs 31rm po/Makevars.template 32rm po/Rules-quot 33rm po/boldquot.sed 34rm po/en@boldquot.header 35rm po/en@quot.header 36rm po/insert-header.sin 37rm po/quot.sed 38 39sh admin/cvs.sh cvs 40 41cd po 42for 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 46 fi 47done 48cd .. 49