diff options
author | Robert Brady <rbrady@src.gnome.org> | 2000-11-21 17:53:43 +0000 |
---|---|---|
committer | Robert Brady <rbrady@src.gnome.org> | 2000-11-21 17:53:43 +0000 |
commit | 2fe5a448ee7a7cc3d4c256489872ee25f13657d1 (patch) | |
tree | 170835526cb6ac6fb7d9d12c5ef9c25f76e886d7 /po/update.pl | |
parent | ac22e4f8b4f71d3e7d9775fc26fcb9013f339209 (diff) | |
download | gtk+-2fe5a448ee7a7cc3d4c256489872ee25f13657d1.tar.gz |
Prepare for tarball-of-po-files.
Diffstat (limited to 'po/update.pl')
-rwxr-xr-x | po/update.pl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/po/update.pl b/po/update.pl index d6b2fc89f9..e044a3012d 100755 --- a/po/update.pl +++ b/po/update.pl @@ -44,13 +44,19 @@ if ($LANG=~/^-(.)*/){ 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\=\.\." ." --add-comments --keyword\=\_ --keyword\=N\_" ." --files-from\=\.\/POTFILES\.in "; $b1="test \! -f $PACKAGE\.po \|\| \( rm -f \.\/$PACKAGE\.pot " - ."&& mv $PACKAGE\.po \.\/$PACKAGE\.pot \)"; + ."&& mv $PACKAGE\.po \.\/$REALPACKAGE\.pot \)"; `$b`; `$b1`; |