pdfbuild 634 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. #
  3. # Copyright © 2015, Peter Harpending. <peter@harpending.org>
  4. #
  5. # Copying and distribution of this file, with or without modification, are
  6. # permitted in any medium without royalty provided the copyright notice and this
  7. # notice are preserved. This file is offered as-is, without any warranty.
  8. linguas=$@
  9. datestamp=`date -u +%y%m%d%H%M%S`
  10. bitch_about_no_pdfs () {
  11. echo "Please run \"lysabuild bootstrap\" first."
  12. exit 1
  13. }
  14. for lang in $linguas ; do
  15. cp -v ../$lang/book/lysa.pdf pdfs/$lang/`printf "lysa-%s.pdf" $datestamp` || bitch_about_no_pdfs
  16. done
  17. cd pdfs
  18. git pull
  19. git add -A .
  20. git commit
  21. git push
  22. cd ..