source: trunk/mktar @ 258

Last change on this file since 258 was 258, checked in by darcy, 14 years ago

Move to 3.8.1 beta.
Remove redundant README file.
Add install.txt.

  • Property svn:executable set to *
File size: 908 bytes
Line 
1#! /bin/sh
2
3BETA=YES
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
23TF=/usr/ftp/pub/distrib/PyGreSQL-$VERSION.tgz
24DOCFILES="docs/announce.txt docs/changelog.txt docs/install.txt"
25MODFILES="module/pg.py module/pgdb.py module/pgmodule.c module/setup.py"
26DISTFILES="$DOCFILES $MODFILES"
27CWD=`pwd`
28
29rm -rf  PyGreSQL-$VERSION
30mkdir PyGreSQL-$VERSION PyGreSQL-$VERSION/tutorial
31cp ${DISTFILES} PyGreSQL-$VERSION
32cp tutorial/*.py PyGreSQL-$VERSION/tutorial
33tar cvzf $TF PyGreSQL-$VERSION
34chmod 644 $TF
35rm -rf  PyGreSQL-$VERSION
36rm -f /usr/ftp/pub/distrib/$SYMLINK
37ln -s PyGreSQL-$VERSION.tgz /usr/ftp/pub/distrib/$SYMLINK
38echo "$TF has been built"
39
Note: See TracBrowser for help on using the repository browser.