Skip to content

Commit

Permalink
Added a quick and dirty script to automate imports from launchpad.net…
Browse files Browse the repository at this point in the history
… ...
  • Loading branch information
icculus committed Feb 20, 2009
1 parent 6ef2eaa commit c85c209
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions misc/launchpad-import.sh
@@ -0,0 +1,21 @@
#!/bin/sh

set -e
set -x

cd `hg root`
hg fetch # will only work on a unmodified working directory.
rm -rf launchpad
mkdir $_
cd $_
tar -xzf ~/launchpad-export.tar.gz
../misc/po2localization.pl *.po mojosetup/mojosetup.pot >../scripts/localization.lua
hg diff ../scripts/localization.lua |less
set +x
echo "enter to commit, ctrl-c to abort."
read
set -x
hg commit -m "Latest translations from launchpad.net ..." ../scripts/localization.lua
cd ..
rm -rf launchpad ~/launchpad-export.tar.gz
exit 0

0 comments on commit c85c209

Please sign in to comment.