#!/bin/sh if [ "$1" = "" ] then echo "Please specify a Solar core release number (e.g., 1.0.0alpha2)." exit 1 else echo "Release is $1." REL=$1 fi # clean up from previous rm -rf download/solar # clear out tmp files rm -rf trunk/tmp/cache/* rm -rf trunk/tmp/log/* rm -rf trunk/tmp/mail/* rm -rf trunk/tmp/session/* # tag the release, remove the external, and commit it svn copy trunk tags/$REL svn propdel svn:externals tags/$REL/source svn commit tags/$REL --message="tagging release for revision $REL" rm -rf tags/$REL/source/solar # export it and kill off the external dir svn export tags/$REL download/solar # add the revision value echo "$REL" > download/solar/version # get the pear package instead, which will have all the replacements in it, # and extract it where the external used to be. cd download/solar/source curl http://solarphp.com/pear/get/Solar-$REL.tgz > Solar-$REL.tgz tar -zxvf Solar-$REL.tgz mv Solar-$REL solar rm -rf *.tgz rm -rf *.xml cd ../../.. # tarball the whole thing cd download tar -zcvf solar-system-$REL.tgz solar cd .. rm -rf download/solar # commit the tarball to the repo svn add download/solar-system-$REL.tgz svn commit download --message="added download tarball for $REL"