[sword-svn] r561 - trunk/migratetags
scribe at crosswire.org
scribe at crosswire.org
Tue Apr 25 22:36:01 EDT 2023
Author: scribe
Date: 2023-04-25 22:36:01 -0400 (Tue, 25 Apr 2023)
New Revision: 561
Modified:
trunk/migratetags/Makefile
Log:
added example targets for Codex Sinaiticus
Modified: trunk/migratetags/Makefile
===================================================================
--- trunk/migratetags/Makefile 2023-04-18 23:29:55 UTC (rev 560)
+++ trunk/migratetags/Makefile 2023-04-26 02:36:01 UTC (rev 561)
@@ -1,12 +1,33 @@
-TARGETS= migratetags
+TARGETS=migratetags
all: $(TARGETS)
-clean:
- rm -f $(TARGETS)
-
.cpp:
g++ -g `pkg-config --cflags sword` $< -o $@ `pkg-config --libs sword`
+# example usages, Codex Sinaiticus transcription
+A_DOWNLOAD_BASE=https://github.com/itsee-birmingham/codex-sinaiticus/raw/main/beta-versions_not-for-release
+A_NT_XML=NT_version193.xml
+A_FULL_XML=FINAL_TRANSCRIPTION_version193.xml
+A_NT_TAGGED_XML=$(shell basename $(A_NT_XML) .xml)-tagged.xml
+A_FULL_TAGGED_XML=$(shell basename $(A_FULL_XML) .xml)-tagged.xml
+EXAMPLE_TARGETS=$(A_NT_XML) $(A_FULL_XML) $(A_NT_TAGGED_XML) $(A_FULL_TAGGED_XML)
+
+$(A_NT_XML):
+ wget $(A_DOWNLOAD_BASE)/$(A_NT_XML)
+
+$(A_FULL_XML):
+ wget $(A_DOWNLOAD_BASE)/$(A_FULL_XML)
+
+$(A_NT_TAGGED_XML): $(A_NT_XML)
+ ./migratetags -v -l -ss NA28 -tei $(A_NT_XML) > $(A_NT_TAGGED_XML) 2> errata-nt.txt
+
+$(A_FULL_TAGGED_XML): $(A_FULL_XML)
+ ./migratetags -l -ss NA28 -ssot LXX -tei $(A_FULL_XML) > $(A_FULL_TAGGED_XML) 2> errata-full.txt
+
+examples: $(EXAMPLE_TARGETS)
+
+clean:
+ rm -f $(TARGETS) $(EXAMPLE_TARGETS) errata-nt.txt errata-full.txt
More information about the sword-cvs
mailing list