1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#!/bin/bash
# This script creates a new release of SciTools
# Make sure we have the current version
echo '--- Synchronizing repository'
sleep 1
svn update
svn commit
# Update version numbers
echo '--- Update version number in ChangeLog'
sleep 1
emacs -nw ChangeLog
echo '--- Update version number in lib/scitools/__init__.py'
sleep 1
emacs -nw lib/scitools/__init__.py
# Commit changes to svn
echo '--- Committing changes to repository'
sleep 1
svn commit
# Get the version number
VERSION=`python -c "import sys;sys.path.insert(0, 'lib');import scitools;print scitools.__version__"`
echo "--- Version number is $VERSION"
# Tag repository
svn copy https://scitools.googlecode.com/svn/trunk \
https://scitools.googlecode.com/svn/tags/$VERSION \
-m "Tagging release $VERSION of SciTools."
# Create archive
echo "--- Creating release $VERSION of SciTools"
rm -rf build
mkdir build
cd build
svn export http://scitools.googlecode.com/svn/trunk scitools-$VERSION
tar czf scitools-$VERSION.tar.gz scitools-$VERSION
cd ..
# Create Windows installer
rm -f dist/SciTools-$VERSION.win32.exe
python setup.py bdist_wininst
# Upload files to googlecode
echo '--- Uploading files to googlecode'
googlecode_upload.py -s "SciTools $VERSION - Source version" -p scitools \
build/scitools-$VERSION.tar.gz
googlecode_upload.py -s "SciTools $VERSION - Windows Installer" -p scitools \
dist/SciTools-$VERSION.win32.exe
# Edit web pages
echo '--- Edit web pages'
firefox http://code.google.com/p/scitools/
|