Browse Source

Fix install script

tags/0.1.2
Daniel 4 months ago
parent
commit
641a024b72
4 changed files with 30 additions and 37 deletions
  1. BIN
     
  2. +30
    -18
      install.sh
  3. +0
    -0
     
  4. +0
    -19
      script/startup.sh

BIN
View File


+ 30
- 18
install.sh View File

@@ -1,19 +1,31 @@
#!/bin/bash
if [-d "~/.heb12"] then
echo "Heb12 folder already exists."
else
mkdir ~/.heb12
cd ~/.heb12

echo "Compiling app..."
git clone https://code.heb12.com/heb12/heb12lite .
cc fbrp/fbrp.c biblec/biblec.c app.c -o heb12

echo "Downloading WEB"
mkdir bibles
cd bibles
wget https://api.heb12.com/translations/biblec/web.i
wget https://api.heb12.com/translations/biblec/web.t
cd ..
set PATH=$PATH:~/.heb12

echo "Making sure wget, git, and gcc is installed.."
sudo apt install wget git gcc

echo "Where would you like the heb12 data to be stored?"
echo "Plain dirs only, like '/home/daniel/'"
read input
cd $input

mkdir heb12
cd heb12

git clone --recurse-submodules https://code.heb12.com/heb12/heb12cli .

touch option.h
echo "char *defaultIndex = \"${input}heb12/bibles/web.i\";" >> option.h
echo "char *defaultReference = \"Ps 139 14\";" >> option.h

echo "Download WEB Bible.."
mkdir bibles
cd bibles
wget https://api.heb12.com/translations/biblec/web.i
wget https://api.heb12.com/translations/biblec/web.t
cd ..

echo "Compiling app"
cc biblec/biblec.c fbrp/fbrp.c app.c -o heb12

echo "All done. To add heb12 to your PATH, use this:"
echo "echo \"export PATH=\$PATH:${input}heb12\" > ~/.bashrc"

+ 0
- 0
View File


+ 0
- 19
script/startup.sh View File

@@ -1,19 +0,0 @@
#!/bin/bash

echo "Where would you like the heb12 data to be stored?"
echo "Plain dirs only, like '/home/daniel/.heb12'"
read input
cd $input

git clone https://code.heb12.com/heb12/heb12cli .

touch option.h
echo "char *defaultIndex = \"$input/bibles/web.i\";" > option.h
echo "char *defaultReference = \"Ps 139 14\";" > option.h

mkdir bibles
cd bibles
wget https://api.heb12.com/translations/biblec/web.i
wget https://api.heb12.com/translations/biblec/web.t
cd ..
cc biblec/biblec.c fbrp/fbrp.c app.c -o heb12

Loading…
Cancel
Save