mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-06-10 23:14:49 +08:00
25 lines
535 B
Bash
Executable file
Vendored
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
|