summaryrefslogtreecommitdiff
path: root/localezlanguage
blob: e996446b9cf9106e6ff778a22666bfbe7aae2a11 (plain)
  1. #!/bin/sh
  2. set -e
  3. for lang in $@; do
  4. if [ -f $lang.tgz ]; then
  5. echo "output file $lang.tgz already exists - exiting"
  6. exit 1
  7. fi
  8. done
  9. for lang in $@; do
  10. # find * -type f | grep -v cache | grep "$lang" | sed "s!$lang/.*!$lang/!" | uniq | sort
  11. # find * -type f | grep -v cache | grep "$lang" | tar -czf $lang.tgz --mode 0644
  12. tar -czf $lang.tgz --mode 0644 `find * -type f | grep -v cache | grep "$lang"`
  13. done