diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-02-28 14:09:04 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-02-28 14:09:04 +0000 |
commit | cafcd5d4368e57f162a641ed3f4835ecb5a6d391 (patch) | |
tree | 56166fbf16289d8b388cf0f1f9b51e28c3c4bdf9 /localezlanguage |
Initial revision
Diffstat (limited to 'localezlanguage')
-rwxr-xr-x | localezlanguage | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/localezlanguage b/localezlanguage new file mode 100755 index 0000000..e996446 --- /dev/null +++ b/localezlanguage @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +for lang in $@; do + if [ -f $lang.tgz ]; then + echo "output file $lang.tgz already exists - exiting" + exit 1 + fi +done +for lang in $@; do +# find * -type f | grep -v cache | grep "$lang" | sed "s!$lang/.*!$lang/!" | uniq | sort +# find * -type f | grep -v cache | grep "$lang" | tar -czf $lang.tgz --mode 0644 + tar -czf $lang.tgz --mode 0644 `find * -type f | grep -v cache | grep "$lang"` +done |