Author: sebastien.lelong
Date: Tue Mar 31 12:30:32 2009
New Revision: 903

Modified:
    trunk/tools/Makefile
    trunk/tools/jalapi_generate.sh

Log:
prepare packaging, just in case :)

Modified: trunk/tools/Makefile
==============================================================================
--- trunk/tools/Makefile        (original)
+++ trunk/tools/Makefile        Tue Mar 31 12:30:32 2009
@@ -47,7 +47,7 @@
        done

  doc:
-       ./jalapi_generate.sh ../
+       ./jalapi_generate.sh ..

  matrix:
        ./jallib_matrix_generate.sh ../
@@ -78,8 +78,8 @@
        cd  distrib/jallib-${VERSION} && for f in `cat 
../jallib-export/TORELEASE  
| grep -v ^\# | grep ^include\/ | sed 's#\r##g'`; do  
cp ../jallib-export/$$f lib; done
        # keep sample structure, but only for those in TORELEASE
        ###cd  distrib/jallib-${VERSION} && for f in  
`cat ../jallib-export/TORELEASE | grep -v ^\# | grep ^sample\/ |  
sed 's#\r##g'`; do mkdir -p `dirname $$f` ; done
-       cd  distrib/jallib-${VERSION} && mkdir sample
-       cd  distrib/jallib-${VERSION} && for f in `cat 
../jallib-export/TORELEASE  
| grep -v ^\# | grep ^sample\/ | sed 's#\r##g'`; do cp ../jallib-export/$$f  
sample/; done
+       -cd  distrib/jallib-${VERSION} && mkdir sample
+       -cd  distrib/jallib-${VERSION} && for f in  
`cat ../jallib-export/TORELEASE | grep -v ^\# | grep ^sample\/ |  
sed 's#\r##g'`; do cp ../jallib-export/$$f sample/; done
        # for all_devices package, keep everything...
        find distrib/jallib-export/include/device -type f -exec cp {}  
distrib/jallib-all_devices-${VERSION}/lib \;
        for f in `find distrib/jallib-export/sample -type f | grep  
-e '[[:digit:]]\{2\}[[:alpha:]]\+.*_blink\.jal'`; \
@@ -91,8 +91,10 @@
        do \
                libfile=`basename $$f`; \
                htmlfile=`echo $$libfile | sed "s#\.jal#.html#"`; \
-               python jallib.py jalapi -l -d distrib/jallib-${VERSION}/sample 
-t  
jalapi_html.tmpl -o distrib/jallib-${VERSION}/doc/html/$$htmlfile  
distrib/jallib-${VERSION}/lib/$$libfile
+               python jallib.py jalapi -l -d distrib/jallib-${VERSION}/sample 
-t  
jalapi_html.tmpl -o distrib/jallib-${VERSION}/doc/html/$$htmlfile  
distrib/jallib-${VERSION}/lib/$$libfile ;\
        done
+       # one-page doc
+       python jallib.py jalapi -s -l -d distrib/jallib-${VERSION}/sample -t  
jalapi_html.tmpl -o distrib/jallib-${VERSION}/doc/html/jallib_onepage.html  
distrib/jallib-${VERSION}/lib/
        # doc menu...
        echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01  
Frameset//EN" 
"http://www.w3.org/TR/html4/frameset.dtd";><html><head><title>Libraries  
- jallib API doc</title></head><body>' >  
distrib/jallib-${VERSION}/doc/html/menu.html
        # manually include device files doc, as it's not generated from a lib

Modified: trunk/tools/jalapi_generate.sh
==============================================================================
--- trunk/tools/jalapi_generate.sh      (original)
+++ trunk/tools/jalapi_generate.sh      Tue Mar 31 12:30:32 2009
@@ -16,7 +16,7 @@
        htmlfile="`echo $basefile | sed 's#\.jal$#.html#'`"
        libname=`echo $basefile | sed 's#\.jal$##'`
        echo -n "Generating doc for $basefile... "
-       python jallib.py jalapi -t jalapi_html.tmpl -o $HTMLDOCDIR/$htmlfile  
$jalfile
+       echo python jallib.py jalapi -t jalapi_html.tmpl -d $JALLIB_SAMPLEDIR 
-o  
$HTMLDOCDIR/$htmlfile $jalfile
        status=$?
        if [ "X$status" = "X0" ]
        then

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to