[Genabel-commits] r1131 - pkg/GenABEL-general/scripts

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Mar 12 00:40:56 CET 2013


Author: lckarssen
Date: 2013-03-12 00:40:55 +0100 (Tue, 12 Mar 2013)
New Revision: 1131

Modified:
   pkg/GenABEL-general/scripts/makedistrib_DatABEL.sh
Log:
Updated the makedistrib script for DatABEL. It now build the tar.gz package first. This generates the PDF documentation from the vignettes. R CMD check then checks the tar.gz file (and needs those PDFs from the vignettes to be present, that's why the order build-check has changed).
Furthermore, the R CMD check command now runs the checks with the --as-cran option.


Modified: pkg/GenABEL-general/scripts/makedistrib_DatABEL.sh
===================================================================
--- pkg/GenABEL-general/scripts/makedistrib_DatABEL.sh	2013-03-11 23:35:07 UTC (rev 1130)
+++ pkg/GenABEL-general/scripts/makedistrib_DatABEL.sh	2013-03-11 23:40:55 UTC (rev 1131)
@@ -1,10 +1,21 @@
 #!/bin/bash
+# This script tries to build and check the packages the way CRAN
+# expects them to build. Before uploading to CRAN these should build
+# without errors or warnings
+#
+# Run this script in a separate directory.
+
+echo "Cleaning up..."
 rm -rf DatABEL*
 rm -rf filevector*
+
+echo "Getting files..."
 svn export svn://svn.r-forge.r-project.org/svnroot/genabel/pkg/DatABEL
 svn export svn://svn.r-forge.r-project.org/svnroot/genabel/pkg/filevector
+
 cd DatABEL
 rm cleanup* configure* *.R
+VERSION=`grep Version DESCRIPTION | cut -d" " -f2`
 cd src
 cp DAlib/*.c* .
 cp DAlib/*.h* .
@@ -17,6 +28,8 @@
 rm fvlib
 mv Makevars_distrib Makevars
 cd ../..
-R CMD check DatABEL
+
+echo "Building the DatABEL_${VERSION}.tar.gz package..."
 R CMD build DatABEL
-# and do not forget to run R CMD check --as-cran!
+echo "Checking DatABEL_${VERSION}.tar.gz"
+R CMD check --as-cran DatABEL_${VERSION}.tar.gz



More information about the Genabel-commits mailing list