source: trunk/mktar @ 468

Last change on this file since 468 was 468, checked in by darcy, 7 years ago

Add missing module files.

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