1#!/bin/sh 2 3rm -rf tmp/osis_basic/ 4mkdir -p tmp/osis_basic/mods.d 5mkdir -p tmp/osis_basic/modules 6 7cat > tmp/osis_basic/mods.d/osisreference.conf <<! 8[OSISReference] 9DataPath=./modules/ 10ModDrv=zText 11Encoding=UTF-8 12BlockType=BOOK 13CompressType=ZIP 14SourceType=OSIS 15Lang=en 16GlobalOptionFilter=OSISLemma 17GlobalOptionFilter=OSISStrongs 18GlobalOptionFilter=OSISMorph 19GlobalOptionFilter=OSISFootnotes 20GlobalOptionFilter=OSISHeadings 21GlobalOptionFilter=OSISRedLetterWords 22Feature=StrongsNumbers 23! 24 25../../utilities/osis2mod tmp/osis_basic/modules/ osisReference.xml -z 2>&1 | grep -v \$Rev 26 27cd tmp/osis_basic 28../../../osistest OSISReference 29 30echo 31echo "-- Plain output" 32../../../../utilities/diatheke/diatheke -b OSISReference -f plain -k Acts 2:19-20 | grep -v OSISReference 33echo 34echo "-- RTF output" 35../../../../utilities/diatheke/diatheke -b OSISReference -f RTF -k Acts 2:19-20 | grep -v OSISReference 36