Skip to content

Commit

Permalink
add a script to create a release tar ball
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R-packages/trunk/Mac-GUI@5256 694ef91d-65df-0310-b7bb-92e67a308ead
  • Loading branch information
s-u committed Oct 22, 2008
1 parent 88f1585 commit 81f4e6a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions mkdist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

cwd=`pwd`
echo " Cleaning old checkout ..."
rm -rf Mac-GUI
echo " Checking out Mac-GUI ..."
svn co "$@" https://svn.r-project.org/R-packages/trunk/Mac-GUI
echo " Replacing updateSVN ..."
cd Mac-GUI
REV=`svn info|sed -n 's/^Revision: //p'`
sed "s:^SVNREV=.*:SVNREV=$REV:" updateSVN > updateSVN.tmp
if [ -e updateSVN.tmp ]; then
chmod a+x updateSVN.tmp
mv updateSVN.tmp updateSVN
fi
echo " Removing .svn ..."
GUIVER=`sed -n 's:.*R_GUI_VERSION_STR "\(.*\)".*:\1:p' RGUI.h`
for i in `find . -name .svn`; do rm -rf $i; done
cd ..
echo " Packaging ..."
tar fcz Mac-GUI-$GUIVER.tar.gz Mac-GUI
rm -rf Mac-GUI
ls -l Mac-GUI-$GUIVER.tar.gz

0 comments on commit 81f4e6a

Please sign in to comment.