Setup scripts for the Heb12 API
api
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
453B

  1. #!/bin/bash
  2. # downloads the bibles and uses the split branch, and makes archived versions
  3. FILE=bibles
  4. if test -d "$FILE"; then
  5. echo "$FILE exist, moving on"
  6. else
  7. git clone https://github.com/gratis-bible/bible bibles
  8. cd bibles
  9. git checkout split
  10. fi
  11. cd bibles
  12. for lang in */; do
  13. [ -e "$lang" ] || continue
  14. cd $lang
  15. for version in */; do
  16. version=${version%/}
  17. tar -cvf $version.tar $version*
  18. done
  19. cd ..
  20. done