Commit 4688b078 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier
Browse files

Some small tweaks to packaging scripts:

- Roxygenize only distribution packages by default
- Check if translations are present when creating tarball
parent 40601bff
......@@ -5,6 +5,11 @@ BASEDIR=`pwd`
OLDVERSION=`${BASEDIR}/scripts/getversion.sh`
VERSION=`${BASEDIR}/scripts/getversion.sh ${1}`
if [ ! -d "$BASEDIR/i18n/po" ]; then
echo "Translations are missing!"
exit 1
fi
mkdir $BASEDIR/disttemp
DISTDIRREL=rkward-$VERSION
DISTDIR=$BASEDIR/disttemp/$DISTDIRREL
......
......@@ -3,13 +3,18 @@
cd `dirname $0`/..
BASEDIR=`pwd`
PACKAGES="'${BASEDIR}/rkward/rbackend/rpackages/rkward/'"
# currently excluded due to missing support for slots in roxygen2:
# '${BASEDIR}/rkward/rbackend/rpackages/rkwardtests/'
if [ "$1" = "--all" ]; then
PACKAGES="${PACKAGES}, \
'${BASEDIR}/packages/XiMpLe/',
'${BASEDIR}/packages/rkwarddev/'"
fi
echo "
library (roxygen2)
packages <- c ( '${BASEDIR}/rkward/rbackend/rpackages/rkward/',
# '${BASEDIR}/rkward/rbackend/rpackages/rkwardtests/', # currently excluded due to missing support for slots in roxygen2
'${BASEDIR}/packages/XiMpLe/',
'${BASEDIR}/packages/rkwarddev/'
)
packages <- c ($PACKAGES)
for (package in packages) {
dummy <- roxygen2:::source_package (package) # See https://github.com/klutometis/roxygen/issues/167
roxygenize (package)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment