Update of /cvsroot/ruby-dbi/src/build
In directory usw-pr-cvs1:/tmp/cvs-serv32549
Added Files:
package.sh
Log Message:
initial creation; handles all release steps
--- NEW FILE: package.sh ---
#!/bin/sh
# works only for tags above 0.0.16
export CVS_RSH=ssh
rm -rf work/
mkdir work
dialog --yesno "Modified lib/dbi/version.rb?" 8 40
if [ $? != 0 ]; then
dialog --msgbox "Exiting! Please modify lib/dbi/version.rb appropriately, before trying again." 8 40
exit 1
fi
dialog --yesno "Added release date of new version in build/DBI-VERSIONS?" 8 40
if [ $? != 0 ]; then
dialog --msgbox "Exiting! Please modify build/DBI-VERSIONS appropriately, before trying again." 8 40
exit 1
fi
dialog --inputbox "Tagged repository (e.g. cvs tag dbi-0-0-17)? Enter tag (without preceeding 'dbi-') below or choose 'Cancel'" 12 40 "0-0-" 2> work/VERSION
if [ $? != 0 ]; then
dialog --msgbox "Exiting! Please tag repository, before trying again." 8 40
exit 1
fi
VERSION=`cat work/VERSION`
DOT_VERSION=`sed -e 's/-/./g' work/VERSION`
TAG=dbi-${VERSION}
# checkout sources
cd work
cvs -z3 -d:ext:mne...@cv...:/cvsroot/ruby-dbi co -r ${TAG} src
cd src
# make documentation and ChangeLog
cd build
make all
cd ..
# remove all CVS directories
find . -name "CVS" -print | xargs rm -rf
# remove all superfluous directories (that are empty but cannot removed from CVS)
rm -rf lib/dbi/doc
# upload HTML pages and CSS
cd doc/html
for i in *.html *.css ;
do scp $i mne...@sh...:/home/groups/r/ru/ruby-dbi/htdocs/$i
done
cd ../..
# create tar.gz
FILE=ruby-dbi-all-${DOT_VERSION}.tar.gz
cd ..
mv src ruby-dbi-all
tar -cvzf ${FILE} ruby-dbi-all
# upload tar.gz
echo "cd incoming\nbinary\nput ${FILE}\nbye\n" ftp -a upload.sourceforge.net
dialog --msgbox "Now log into SourceForge Admin page and make a release. Release is named like '0.0.17'; platform independent, source .gz." 8 40
links http://www.sourceforge.net/account/login.php
dialog --msgbox "Finally, update the page at the RAA." 8 40
w3m "http://www.ruby-lang.org/en/raa-update.rhtml?name=Ruby%2FDBI"
# remove work
cd ..
rm -rf work
|