Skip to content

Commit

Permalink
Prepend "new-" instead of appending ".new" so that special treatment
Browse files Browse the repository at this point in the history
of files based on extensions is not affected.
  • Loading branch information
Pavel Roskin committed Sep 7, 2005
1 parent 06f4ef5 commit 55b23ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions maint/send-po
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ files=`find . -name '*.[ch]' | xargs $XGETTEXT $XGETTEXT_OPTIONS --output=- | \

$XGETTEXT --default-domain=$DOMAIN --directory=. \
--add-comments=TRANSLATORS: $XGETTEXT_OPTIONS \
--copyright-holder="$COPYRIGHT_HOLDER" --output=po/mc.pot.new $files
--copyright-holder="$COPYRIGHT_HOLDER" --output=po/new-mc.pot $files

for file in po/*.po; do
$MSGMERGE --output=$file.new $file po/mc.pot.new
$MSGMERGE --output=po/new-`basename $file` $file po/new-mc.pot
done

# Location of the snapshot directory
SITE="login.ibiblio.org"
DIR="/public/ftp/pub/Linux/utils/file/managers/mc/po"

scp po/*.new "$SITE:$DIR/"
scp po/new-* "$SITE:$DIR/"

ssh $SITE "cd $DIR; for file in *.new; do mv -f \$file \`basename \$file .new\`; done"
ssh $SITE "cd $DIR; for file in new-*; do mv -f \$file \${file#new-}; done"

rm -f po/*.new
rm -f po/new-*

0 comments on commit 55b23ed

Please sign in to comment.