Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (18 sloc) 0.456 kb
#!/bin/sh
maver=`cat crsver`
miver=${maver##*-}
maver=${maver%-*}
if [ $1 ]
then
let 'miver+=1'
echo $maver-$miver > crsver
fi
echo updating DESCRIPTION
sed -i.bak -e 's/Version[:].*/'"Version: $maver-$miver/" -e 's/Date[:].*/'"Date: `date +%Y-%m-%d`/" DESCRIPTION
rm DESCRIPTION.bak
cd R
echo updating zzz.R
sed -i.bak -e 's/version [0-9.][0-9.]*-[0-9][0-9]*/'"version $maver-$miver/" zzz.R
rm zzz.R.bak
cp spline.R ../demo
cd ..
Jump to Line
Something went wrong with that request. Please try again.