mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Prepend "new-" instead of appending ".new" so that special treatment
of files based on extensions is not affected.
This commit is contained in:
parent
06f4ef50e6
commit
55b23ed98d
@ -20,18 +20,18 @@ files=`find . -name '*.[ch]' | xargs $XGETTEXT $XGETTEXT_OPTIONS --output=- | \
|
|||||||
|
|
||||||
$XGETTEXT --default-domain=$DOMAIN --directory=. \
|
$XGETTEXT --default-domain=$DOMAIN --directory=. \
|
||||||
--add-comments=TRANSLATORS: $XGETTEXT_OPTIONS \
|
--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
|
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
|
done
|
||||||
|
|
||||||
# Location of the snapshot directory
|
# Location of the snapshot directory
|
||||||
SITE="login.ibiblio.org"
|
SITE="login.ibiblio.org"
|
||||||
DIR="/public/ftp/pub/Linux/utils/file/managers/mc/po"
|
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-*
|
||||||
|
Loading…
Reference in New Issue
Block a user