[Rcpp-commits] r681 - scripts
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Feb 14 23:10:34 CET 2010
Author: edd
Date: 2010-02-14 23:10:34 +0100 (Sun, 14 Feb 2010)
New Revision: 681
Modified:
scripts/runDoxygenAndZip.sh
Log:
Doxygen now embeds 'Rcpp $version' on title and 'created on ... for ...' footnotes
Modified: scripts/runDoxygenAndZip.sh
===================================================================
--- scripts/runDoxygenAndZip.sh 2010-02-14 21:32:34 UTC (rev 680)
+++ scripts/runDoxygenAndZip.sh 2010-02-14 22:10:34 UTC (rev 681)
@@ -1,14 +1,24 @@
#!/bin/sh
+cwd=$(pwd)
+
+version=$(r -e'cat(as.character(read.dcf("pkg/DESCRIPTION")[,"Version"]))')
+echo "Working on version $version"
+
+
if [ -x /usr/bin/doxygen ]; then
cd pkg/inst/doc
rm -rf html/ latex/ man/
- cd -
+ cd ${cwd}
cd pkg
cd src && ln -s ../inst/examples . && cd -
- doxygen
+
+ ## see FAQ 17 for doxygen
+ ( cat doxyfile ; echo PROJECT_NAME="\"Rcpp Version ${version}\"" ) | doxygen -
+
rm src/examples
- cd -
+ cd ${cwd}
+ pwd
cd pkg/inst/doc
zip -9r rcpp-doc-html.zip html/
@@ -18,5 +28,5 @@
mv -v rcpp-doc-*.zip ~/www/code/rcpp/
rsync --delete -avu html ~/www/code/rcpp/
fi
- cd -
+ cd ${cwd}
fi
\ No newline at end of file
More information about the Rcpp-commits
mailing list