source: trunk/mktar @ 246

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

Fix up the distribution file creation script to reflect recent changes to
the directory structure.

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