-Fri Oct 29 16:51:03 EDT 1999 Ben Collins <bcollins.debian.org>
+Fri Oct 29 20:16:43 EDT 1999 Ben Collins <bcollins@debian.org
+
+ * po/update.sh: make sure we only update when there are changes,
+ also autodetect list of .po files we need to change
+ * release.sh: likewise for .gmo generation
+
+Fri Oct 29 16:51:03 EDT 1999 Ben Collins <bcollins@debian.org>
* main/archives.c: s/DPK/DPKG/ from one of the gettext changes
--files-from=POTFILES.in && test ! -f dpkg.po \
|| ( rm -f dpkg.pot && mv dpkg.po dpkg.pot )
-catalogs='en.gmo fr.gmo es.gmo ja_JP.ujis.gmo cs.gmo'
+catalogs=`ls *.po`
for cat in $catalogs; do
- lang=`echo $cat | sed 's/\.gmo$//'`
- mv $lang.po $lang.old.po
+ if [ "$cat" = "dpkg.po" ] ; then continue ; fi
+ lang=`echo $cat | sed 's/\.po$//'`
+ mv $cat $lang.old.po
echo "$lang:"
- if msgmerge $lang.old.po dpkg.pot -o $lang.po; then
+ if msgmerge $lang.old.po dpkg.pot -o $cat; then
rm -f $lang.old.po
else
echo "msgmerge for $cat failed!"
- rm -f $lang.po
- mv $lang.old.po $lang.po
+ if cmp --quiet $cat $lang.old.po ; then
+ rm -f $lang.old.po
+ else
+ mv -f $lang.old.po $cat
+ fi
fi
done
# Generate all the gettext stuff
cd po
./update.sh
-catalogs='en.gmo fr.gmo es.gmo ja_JP.ujis.gmo'
+catalogs=`ls *.po`
for cat in $catalogs; do
- lang=`echo $cat | sed 's/\.gmo$//'`
- msgfmt -o $cat $lang.po
+ if [ "$cat" = "dpkg.po" ] ; then continue ; fi
+ lang=`echo $cat | sed 's/\.po$//'`
+ msgfmt -o $lang.gmo $cat
done
cd ..