refugee-phrasebook / backendscripts

1 stars 0 forks source link

sh: test if linux or mac #21

Open michal-fre opened 9 years ago

michal-fre commented 9 years ago

test on what system we are as there might be some issues using different systems

michal-fre commented 9 years ago

Read these? $MACHTYPE, $OSTYPE and $BASH_VERSINFO

for n in 0 1 2 3 4 5; do echo "BASH_VERSINFO[$n] = ${BASH_VERSINFO[$n]}"; done

sgelb commented 9 years ago

For Windows support, have a look at https://github.com/sgelb/refugeePhrasebookCreator#windows. I was surprised how easy it was to install the requirements. Git for Windows includes Bash 4 and the GNU coreutils and of course git. MiKTeX installs missing Tex-packages on the fly when compiling the tex source. Pretty nice!