source: trunk/mktar @ 293

Last change on this file since 293 was 293, checked in by darcy, 13 years ago

Release 3.8.1 (target June 5, 2006)

  • Property svn:executable set to *
File size: 838 bytes
Line 
1#! /bin/sh
2
3BETA=NO
4VERSION=3.8.1
5
6# small safety test
7if [ ! -f module/pgmodule.c ]
8then
9        echo "Hmmm.  Are you sure you are in the right directory?"
10        exit 1
11fi
12
13if [ $BETA = "YES" ]
14then
15        VERSION=$VERSION-pre`date +"%y%m%d"`
16        PACKAGE=pygresql.pkg-beta
17        SYMLINK=PyGreSQL-beta.tgz
18else
19        PACKAGE=pygresql.pkg
20        SYMLINK=PyGreSQL.tgz
21fi
22
23DISTDIR=/usr/ftp/pub/distrib
24TD=PyGreSQL-$VERSION
25TF=$DISTDIR/$TD.tgz
26
27MODFILES="module/pg.py module/pgdb.py module/pgmodule.c module/setup.py"
28DOCFILES="docs/*.txt docs/*.html docs/*.css"
29TUTFILES="tutorial/*.py"
30
31echo "Making source tarball..."
32
33./mkdocs
34
35rm -rf $TD
36mkdir $TD
37mkdir $TD/docs
38mkdir $TD/tutorial
39cp $MODFILES $TD
40cp $DOCFILES $TD/docs
41cp $TUTFILES $TD/tutorial
42tar -cvzf $TF $TD
43chmod 644 $TF
44rm -rf $TD
45rm -f $DISTDIR/$SYMLINK
46ln -s $TD.tgz $DISTDIR/$SYMLINK
47
48echo "$TF has been built"
49
Note: See TracBrowser for help on using the repository browser.