Heb12 CLI for Linux, DOS
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.

32 lines
809 B

  1. #!/bin/bash
  2. echo "Making sure wget, git, and gcc is installed.."
  3. sudo apt install wget git gcc
  4. echo "Where would you like the heb12 data to be stored?"
  5. echo "Plain dirs only, like '/home/daniel/'"
  6. read input
  7. cd $input
  8. mkdir heb12
  9. cd heb12
  10. git clone --recurse-submodules https://code.heb12.com/heb12/heb12cli .
  11. touch option.h
  12. echo "char *defaultIndex = \"${input}heb12/bibles/web.i\";" >> option.h
  13. echo "char *defaultReference = \"Ps 139 14\";" >> option.h
  14. echo "Download WEB Bible.."
  15. mkdir bibles
  16. cd bibles
  17. wget https://api.heb12.com/translations/biblec/web.i
  18. wget https://api.heb12.com/translations/biblec/web.t
  19. cd ..
  20. echo "Compiling app"
  21. cc biblec/biblec.c fbrp/fbrp.c app.c -o heb12
  22. echo "All done. To add heb12 to your PATH, use this:"
  23. echo "echo \"export PATH=\$PATH:${input}heb12\" > ~/.bashrc"