generate ever growing list of JS includes for devel pages.
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 9 Jul 2014 14:05:50 +0000 (14:05 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 9 Jul 2014 14:05:50 +0000 (14:05 +0000)
make -s mkws-html-includes
    <script type="text/javascript" src="src/mkws-handlebars.js"></script>
    <script type="text/javascript" src="src/mkws-core.js"></script>
    <script type="text/javascript" src="src/mkws-team.js"></script>
    <script type="text/javascript" src="src/mkws-filter.js"></script>
    <script type="text/javascript" src="src/mkws-widget.js"></script>
    <script type="text/javascript" src="src/mkws-widget-main.js"></script>
    <script type="text/javascript" src="src/mkws-widget-termlists.js"></script>
    <script type="text/javascript" src="src/mkws-widget-authname.js"></script>
    <script type="text/javascript" src="src/mkws-widget-categories.js"></script>
    <script type="text/javascript" src="src/mkws-widget-log.js"></script>
    <script type="text/javascript" src="src/mkws-widget-record.js"></script>
    <script type="text/javascript" src="src/mkws-widget-reference.js"></script>
    <script type="text/javascript" src="src/mkws-widget-builder.js"></script>

tools/htdocs/Makefile

index 388a4b8..7ce2626 100644 (file)
@@ -87,6 +87,10 @@ mkws.js: $(COMPONENTS) Makefile
        mv -f $@.tmp $@
        chmod 444 $@
 
+mkws-html-includes: 
+       echo $(COMPONENTS) | perl -npe "s,${SRC},,g; s/\s+/\0/g" | \
+         perl -n0e 'print qq{    <script type="text/javascript" src="src$$_"></script>\n}'
+
 distclean: clean
        @echo "(No need for distclean, 'make clean' is fine)"