File: makedist

package info (click to toggle)
scitools 0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 17,252 kB
  • ctags: 2,871
  • sloc: python: 28,744; sh: 112; makefile: 15
file content (54 lines) | stat: -rwxr-xr-x 1,499 bytes parent folder | download
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/