weblate/scripts/pack-test-data
Michal Čihař 3a46ed22ed Adjust to new location of the repository
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-08 09:33:51 +02:00

25 lines
535 B
Bash
Executable file
Vendored

#!/bin/sh
# Packs test data for Weblate
# Output directory
OUT=`pwd`/weblate/trans/tests/data/
# Working directory
WD=`mktemp -d`
cd $WD
# Clone and cleanup Mercurial repo
hg clone https://bitbucket.org/nijel/weblate-test test-base-repo.hg
cd test-base-repo.hg
hg update null
cd ..
# Close bare Git repo
git clone --bare https://github.com/WeblateOrg/test.git test-base-repo.git
# Pack them
tar cf $OUT/test-base-repo.hg.tar test-base-repo.hg
tar cf $OUT/test-base-repo.git.tar test-base-repo.git
# Remove working dir
rm -rf $WD