Prepare for tarball-of-po-files.

This commit is contained in:
Robert Brady
2000-11-21 17:53:43 +00:00
parent ac22e4f8b4
commit 2fe5a448ee
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-11-21 Robert Brady <robert@suse.co.uk>
* update.pl: Allow a parameter to specify the name of the .pot
file to generate. (for stats).
2000-11-12 Robert Brady <robert@suse.co.uk> 2000-11-12 Robert Brady <robert@suse.co.uk>
* *.po: Convert them all to UTF-8. Rename Chinese .po's so * *.po: Convert them all to UTF-8. Rename Chinese .po's so

View File

@ -44,13 +44,19 @@ if ($LANG=~/^-(.)*/){
elsif($LANG eq "--pot" || "$LANG" eq "-P"){ elsif($LANG eq "--pot" || "$LANG" eq "-P"){
print "Building the $PACKAGE.pot ..."; shift;
$REALPACKAGE = shift;
if (!$REALPACKAGE) {
$REALPACKAGE = $PACKAGE;
}
print "Building the $REALPACKAGE.pot ...";
$b="xgettext --default-domain\=$PACKAGE --directory\=\.\." $b="xgettext --default-domain\=$PACKAGE --directory\=\.\."
." --add-comments --keyword\=\_ --keyword\=N\_" ." --add-comments --keyword\=\_ --keyword\=N\_"
." --files-from\=\.\/POTFILES\.in "; ." --files-from\=\.\/POTFILES\.in ";
$b1="test \! -f $PACKAGE\.po \|\| \( rm -f \.\/$PACKAGE\.pot " $b1="test \! -f $PACKAGE\.po \|\| \( rm -f \.\/$PACKAGE\.pot "
."&& mv $PACKAGE\.po \.\/$PACKAGE\.pot \)"; ."&& mv $PACKAGE\.po \.\/$REALPACKAGE\.pot \)";
`$b`; `$b`;
`$b1`; `$b1`;