[sword-svn] r117 - trunk/flashtools

scribe at www.crosswire.org scribe at www.crosswire.org
Wed Nov 7 09:49:13 MST 2007


Author: scribe
Date: 2007-11-07 09:49:12 -0700 (Wed, 07 Nov 2007)
New Revision: 117

Modified:
   trunk/flashtools/Makefile
   trunk/flashtools/flash.cpp
Log:
Added lessons target to makefile
Changed lessons to be %.3 padded


Modified: trunk/flashtools/Makefile
===================================================================
--- trunk/flashtools/Makefile	2007-11-04 01:00:31 UTC (rev 116)
+++ trunk/flashtools/Makefile	2007-11-07 16:49:12 UTC (rev 117)
@@ -1,11 +1,17 @@
 TARGETS= flash
 all: $(TARGETS)
-	mkdir -p hebFreq hebFreqKJV greekFreq greekFreqKJV
 
 clean:
 	rm -rf hebFreq hebFreqKJV greekFreq greekFreqKJV
 	rm $(TARGETS)
 
+lessons:
+	mkdir -p hebFreq hebFreqKJV greekFreq greekFreqKJV
+	./flash -o hebFreq -w 25 -d m -r Gen-Mal
+	./flash -o hebFreqKJV -w 25 -d k -r Gen-Mal
+	./flash -o greekFreq -w 25 -d m -r Mat-Rev
+	./flash -o greekFreqKJV -w 25 -d k -r Mat-Rev
+
 .cpp:
 	g++ -g `pkg-config --cflags sword` $< -o $@ `pkg-config --libs sword`
 

Modified: trunk/flashtools/flash.cpp
===================================================================
--- trunk/flashtools/flash.cpp	2007-11-04 01:00:31 UTC (rev 116)
+++ trunk/flashtools/flash.cpp	2007-11-07 16:49:12 UTC (rev 117)
@@ -211,7 +211,7 @@
 		if (!wordCount) {
 			SWBuf fname = outputDir;
 			fname += "/lesson";
-			fname.appendFormatted("%d", lessonNumber);
+			fname.appendFormatted("%.3d", lessonNumber);
 			fname += ".flash";
 			ofile.open(fname);
 			startFreq = w.freq;




More information about the sword-cvs mailing list