Author: AlbrechtS
Date: 2009-03-21 03:29:42 -0700 (Sat, 21 Mar 2009)
New Revision: 6702
Log:
Moved the stripping of date comments (strip_tags) to its own target
"html-dist", just like it has been done for pdf-dist.

Stripping the date comments roughly doubled the time of html generation
for daily use, although it is only needed before a web update.

*** Please use "make html-dist" before updating the web docs. ***

Just for reference: Measurement values on my Windows system with cygwin:
 - make html    1:01 minutes
 - strip_tags   1:05 minutes
 - strip_tags   0:49 minutes after removal of cat

Todo:
 - Why do we need the external script strip_tags, are there reasons not to
   integrate it in the Makefile?
 - If it would be in the Makefile, should we use ${RM} instead of literally
   using "rm" ?


Modified:
   branches/branch-1.3/documentation/Makefile
   branches/branch-1.3/documentation/strip_tags

Modified: branches/branch-1.3/documentation/Makefile
===================================================================
--- branches/branch-1.3/documentation/Makefile  2009-03-20 16:11:34 UTC (rev 
6701)
+++ branches/branch-1.3/documentation/Makefile  2009-03-21 10:29:42 UTC (rev 
6702)
@@ -271,6 +271,8 @@
        -$(RMDIR) html
        -$(INSTALL_DIR) html
        -$(DOXYDOC)
+
+html-dist: html
        echo "Stripping HTML files..."
        ./strip_tags
 
@@ -279,7 +281,7 @@
 #      $(RM) fltk.ps
 #      -$(HTMLDOC) --verbose --batch $(SRC_DOCDIR)/fltk.book $(MEDIA) -f 
fltk.ps
 
-pdf-dist : latex/refman.pdf
+pdf-dist: latex/refman.pdf
        cp -f latex/refman.pdf fltk.pdf
 
 pdf:   latex/refman.pdf

Modified: branches/branch-1.3/documentation/strip_tags
===================================================================
--- branches/branch-1.3/documentation/strip_tags        2009-03-20 16:11:34 UTC 
(rev 6701)
+++ branches/branch-1.3/documentation/strip_tags        2009-03-21 10:29:42 UTC 
(rev 6702)
@@ -1,5 +1,5 @@
 for f in html/*.html ; do
-  cat $f | sed 's/<!-- ... ... .*:..:.. ....\. -->/<!-- date removed for 
reducing unnecessary svn web updates  -->/' > $f.tmp
+  sed 's/<!-- ... ... .*:..:.. ....\. -->/<!-- date removed for reducing 
unnecessary svn web updates  -->/' $f > $f.tmp
   rm $f
   mv $f.tmp $f
-done
\ No newline at end of file
+done

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to