Revision: 4068 Author: hans URL: http://bknr.net/trac/changeset/4068
commit release shell script A trunk/libraries/release.sh
Added: trunk/libraries/release.sh =================================================================== --- trunk/libraries/release.sh (rev 0) +++ trunk/libraries/release.sh 2008-11-15 12:56:45 UTC (rev 4068) @@ -0,0 +1,35 @@ +#!/bin/sh + +set -e + +package=$1 +release=$2 + +if [ "$release" = "" ] +then + echo usage: $0 '<package>' '<release>' 1>&2 + exit 1 +fi + +packagerel=$1-$2 +webhost=common-lisp.net +webdir=/project/$package/public_html + +repo=`svn info yason | grep "Repository Root" | awk -F': ' '{print $2}'` + +set -x +svn status $package +svn rm -m "remove previous $packagerel from repository" $repo/releases/$package/$release +svn cp -m "release $packagerel" $repo/trunk/libraries/$package $repo/releases/$package/$release +svn co $repo/releases/$package/$release $packagerel + +if [ -f $packagerel/doc.xml ] +then + xsltproc clixdoc/clixdoc.xsl $packagerel/doc.xml > $packagerel/index.html +fi + +tar --exclude .svn --exclude '*.fasl' --exclude '*.log' \ + -cvzf $packagerel.tar.gz $packagerel/* + +scp $packagerel/index.html $packagerel.tar.gz ${webhost}:${webdir} +ssh $webhost "cd $webdir ; rm -f $package.tar.gz ; ln -s $packagerel.tar.gz $package.tar.gz"