source: trunk/mktar @ 263

Last change on this file since 263 was 263, checked in by cito, 14 years ago

Added mkdocs script to create the HTML docs.
Improved mktar script to add the docs to the release.

  • Property svn:executable set to *
File size: 849 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
23DISTDIR=/usr/ftp/pub/distrib
24DISTDIR=.
25TD=PyGreSQL-$VERSION
26TF=$DISTDIR/$TD.tgz
27
28MODFILES="module/pg.py module/pgdb.py module/pgmodule.c module/setup.py"
29DOCFILES="docs/*.txt docs/*.html docs/*.css"
30TUTFILES="tutorial/*.py"
31
32echo "Making source tarball..."
33
34./mkdocs
35
36rm -rf $TD
37mkdir $TD
38mkdir $TD/docs
39mkdir $TD/tutorial
40cp $MODFILES $TD
41cp $DOCFILES $TD/docs
42cp $TUTFILES $TD/tutorial
43tar -cvzf $TF $TD
44chmod 644 $TF
45rm -rf $TD
46rm -f $DISTDIR/$SYMLINK
47ln -s $TD.tgz $DISTDIR/$SYMLINK
48
49echo "$TF has been built"
50
Note: See TracBrowser for help on using the repository browser.