CIPHERKEY=changeme_in_cipherkey.mk include cipherkey.mk BUNDLE=NA28_5th_pr_XML.zip FINALTARGET:=NA28.zip ECMSTRIP:=-e ../tag-exceptions-na28.conf ECMREPLACE:=echo ###### for ECM # Strip accents and appCrit for ECM ## not sure what this is ###ECMSTRIP:=-fa -fc -ss NA28Tags -e ../tag-exceptions-na28.conf -e ../tag-exceptions-ecm.conf #ECMSTRIP:=-fa -fc -e ../tag-exceptions-na28.conf -e ../tag-exceptions-ecm.conf #ECMREPLACE:=imp2vs #FINALTARGET:=ECM.zip all: NA28/$(FINALTARGET) cipherkey.mk: scp crosswire.org:/home/swordmod/pristine-private/na28/cipherkey.mk . || true deploy: deploy$(FINALTARGET) deployECM.zip: scp NA28/ECM.zip scribe@host.crosswire.org:/home/swordweb/webmods/ deployNA28.zip: scp NA28/NA28.zip scribe@host.crosswire.org:/home/sword/ftp/dbgpackages/ NA28/finalmod/mods.d/na28.conf: NA28/modules/texts/ztext/na28/nt.bzz rm -rf NA28/finalmod/mods.d rm -rf NA28/finalmod/modules mkdir -p NA28/finalmod/mods.d/ mkdir -p NA28/finalmod/modules/texts/ztext/ cp -a NA28/mods.d/na28.conf NA28/finalmod/mods.d/ cp -a NA28/modules/texts/ztext/na28 NA28/finalmod/modules/texts/ztext/ prezipNA28.zip: echo "no prezip work to do for the NA28" prezipECM.zip: unlock rm -rf NA28/finalmod/modules/texts/ztext/ecm rm -rf NA28/finalmod/mods.d/ecm.conf mv NA28/finalmod/modules/texts/ztext/na28 NA28/finalmod/modules/texts/ztext/ecm mv NA28/finalmod/mods.d/na28.conf NA28/finalmod/mods.d/ecm.conf sed -i 's/DataPath=.*$$/DataPath=.\/modules\/texts\/ztext\/ecm\//' NA28/finalmod/mods.d/ecm.conf sed -i 's/\[NA28]$$/[ECM]/' NA28/finalmod/mods.d/ecm.conf sed -i 's/Description=.*$$/Description=Editio Critica Maior/' NA28/finalmod/mods.d/ecm.conf NA28/$(FINALTARGET): NA28/finalmod/mods.d/na28.conf prezip$(FINALTARGET) cd NA28/finalmod && zip -r ../$(FINALTARGET) * NA28/modules/texts/ztext/na28/nt.bzz: NA28/modules/texts/rawtext/na28/nt NA28/mods.d/na28.conf mkdir -p NA28/modules/texts/ztext/na28/ cd NA28 && mod2zmod NA28raw modules/texts/ztext/na28/ 4 2 0 ${CIPHERKEY} chmod a+r NA28/modules/texts/ztext/na28/* NA28/mods.d/na28.conf: na28.conf mkdir -p NA28/mods.d cp na28raw.conf na28.conf NA28/mods.d/ NA28/modules/texts/rawtext/na28/nt: NA28/NA28-tagged.imp mkdir -p NA28/modules/texts/rawtext/na28 imp2vs NA28/NA28-tagged.imp -o NA28/modules/texts/rawtext/na28/ > output.log imp2vs NA28/NA28-apparatus.imp -a -o NA28/modules/texts/rawtext/na28/ >> output.log NA28/NA28-tagged.imp: migratetags/modules/texts/rawtext/na28/nt migratetags/migratetags cd migratetags && ./migratetags $(ECMSTRIP) 2> ../NA28/tag-errors.txt > ../NA28/NA28-tagged.imp migratetags/migratetags: migratetags/mods.d/whnu.conf migratetags/Makefile cd migratetags && make cp na28raw.conf na28.conf migratetags/mods.d/ # these two targets build na28/nt from imp instead of from # osis until we figure out why osis isn't working migratetags/modules/texts/rawtext/na28/nt: NA28/NA28.imp mkdir -p migratetags/modules/texts/rawtext/na28 imp2vs NA28/NA28.imp -o migratetags/modules/texts/rawtext/na28/ > output.log # update parts of NA28 with ECM text echo "" >> output.log echo "=================================" >> output.log echo "" >> output.log $(ECMREPLACE) NA29-Acts.imp -a -r -o migratetags/modules/texts/rawtext/na28/ >> output.log $(ECMREPLACE) NA29-Mark.imp -a -r -o migratetags/modules/texts/rawtext/na28/ >> output.log NA28/NA28.imp: NA28/NA28.osis NA28/NA28-apparatus.osis sed -f osis2imp.sed NA28/NA28.osis > NA28/NA28.imp sed -f osis2impfn.sed NA28/NA28-apparatus.osis > NA28/NA28-apparatus.imp # osis isn't working right this second #migratetags/modules/texts/rawtext/na28/nt: NA28/NA28.osis # mkdir -p NA28/mod # osis2mod NA28/mod NA28/NA28.osis -d 1023 > output.log NA28/NA28.osis: NA28/NA28.stage1 sed -f verses.sed NA28/NA28.stage1 > NA28/NA28.osis NA28/NA28-apparatus.osis: NA28/NA28-apparatus.stage1 sed -f verses.sed NA28/NA28-apparatus.stage1 > NA28/NA28-apparatus.pre1 sed ':a;N;$$!ba;s/<\/app>\n\n|<\/span>\n\n¦<\/span> NA28/NA28-apparatus.osis NA28/NA28.stage1: NA28/03Hauptteil/Obertext/01_Mt_ot_UCF_100921_End8_LH.xml entities.sed sed -f entities.sed NA28/03Hauptteil/Obertext/*.xml > NA28/NA28.stage1 NA28/NA28-apparatus.stage1: NA28/03Hauptteil/Obertext/01_Mt_ot_UCF_100921_End8_LH.xml entities.sed sed -f entities.sed NA28/03Hauptteil/Apparat/*.xml | sed -f app-entities.sed > NA28/NA28-apparatus.stage1 ${BUNDLE}: scp crosswire.org:/home/swordmod/pristine-private/na28/${BUNDLE} . NA28/03Hauptteil/Obertext/01_Mt_ot_UCF_100921_End8_LH.xml: ${BUNDLE} mkdir -p NA28 cd NA28 && unzip ../${BUNDLE} cd NA28/03Hauptteil/Obertext/ && for i in *.zip; do unzip $$i; done cd NA28/03Hauptteil/Apparat/ && for i in *.zip; do unzip $$i; done touch NA28/03Hauptteil/Obertext/01_Mt_ot_UCF_100921_End8_LH.xml unlock: sed -i 's/CipherKey=.*$$/CipherKey=${CIPHERKEY}/' NA28/finalmod/mods.d/na28.conf genkey: .SHELLFLAGS = -c eval genkey: SHELL = bash -c 'eval "$${@//\\\\/}"' genkey: PERSONALIZATION = KKLEIN genkey: ~/src/sword/tests/ciphertest xyz 2 <