[rkward-cvs] SF.net SVN: rkward:[3752] trunk/rkward/scripts

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Sep 12 08:14:18 UTC 2011


Revision: 3752
          http://rkward.svn.sourceforge.net/rkward/?rev=3752&view=rev
Author:   tfry
Date:     2011-09-12 08:14:17 +0000 (Mon, 12 Sep 2011)
Log Message:
-----------
Add roxygen(2)ization of rkwarddev and XiMpLe

Modified Paths:
--------------
    trunk/rkward/scripts/makedist.sh

Added Paths:
-----------
    trunk/rkward/scripts/roxygenize.sh

Modified: trunk/rkward/scripts/makedist.sh
===================================================================
--- trunk/rkward/scripts/makedist.sh	2011-09-11 18:10:11 UTC (rev 3751)
+++ trunk/rkward/scripts/makedist.sh	2011-09-12 08:14:17 UTC (rev 3752)
@@ -13,10 +13,7 @@
 $BASEDIR/scripts/set_dist_version.sh $VERSION
 
 # update roxygen documentation just in case we forgot:
-TESTSPACKAGE="${BASEDIR}/rkward/rbackend/rpackages/rkwardtests/"
-/usr/bin/R CMD roxygen "${TESTSPACKAGE}" "${TESTSPACKAGE}"
-rmdir "${TESTSPACKAGE}/inst/doc"
-rmdir "${TESTSPACKAGE}/inst"
+$BASEDIR/scripts/roxygenize.sh
 
 cp -a AUTHORS CMakeLists.txt COPYING ChangeLog TODO INSTALL NOTES README configure $DISTDIR
 mkdir $DISTDIR/doc
@@ -32,9 +29,6 @@
 # make messages
 cd $DISTDIR/po
 ./Messages.sh
-# clean up test-results
-cd $DISTDIR/tests
-find . -mindepth 2 -name 'RKTestStandard.*' -o -exec rm {} \;
 
 cd $BASEDIR/disttemp
 tar -czf rkward-$VERSION.tar.gz $DISTDIRREL

Added: trunk/rkward/scripts/roxygenize.sh
===================================================================
--- trunk/rkward/scripts/roxygenize.sh	                        (rev 0)
+++ trunk/rkward/scripts/roxygenize.sh	2011-09-12 08:14:17 UTC (rev 3752)
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+cd `dirname $0`/..
+BASEDIR=`pwd`
+
+echo "
+	library (roxygen2)
+	packages <- c ('${BASEDIR}/rkward/rbackend/rpackages/rkwardtests/',
+					'${BASEDIR}/rkward/rbackend/rpackages/rkwarddev/',
+					'${BASEDIR}/rkward/rbackend/rpackages/XiMpLe/')
+	for (package in packages) {
+		roxygenize (package)
+		possibly_empty_dirs <- paste (package, c ('inst/doc', 'inst'), sep='/')
+		for (dir in possibly_empty_dirs) {
+			if (file.exists (dir)) try (file.remove (dir))
+		}
+	}
+	print (warnings())
+" | /usr/bin/R --no-save


Property changes on: trunk/rkward/scripts/roxygenize.sh
___________________________________________________________________
Added: svn:executable
   + *

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list