source: branches/4.x/mktar @ 753

Last change on this file since 753 was 753, checked in by cito, 4 years ago

Forgot some needed changes in the mkdocs and mktar script

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#! /bin/sh
2
3VERSION=4.2
4DISTDIR=/u/pyg/files
5
6# small safety tests
7if [ ! -f pgmodule.c ]
8then
9        echo "Hmmm.  Are you sure you are in the right directory?"
10        exit 1
11fi
12if [ ! -d $DISTDIR ]
13then
14        echo "Hmmm.  Are you sure you are on the right server?"
15        exit 1
16fi
17
18if [ -f BETA ]
19then
20        VERSION=$VERSION-pre`date +"%y%m%d"`
21        PACKAGE=pygresql.pkg-beta
22        SYMLINK=PyGreSQL-beta.tgz
23else
24        PACKAGE=pygresql.pkg
25        SYMLINK=PyGreSQL.tgz
26fi
27
28# Package up as a source tarball in the distribution directory.
29
30echo "Making source tarball..."
31
32# Make sure that the documentation has been built.
33
34./mkdocs
35
36# The following does essentially the same as "python setup.py sdist".
37
38TD=PyGreSQL-$VERSION
39TF=$DISTDIR/$TD.tgz
40
41MODFILES="pg.py pgdb.py pgmodule.c
42          pgfs.h pgtypes.h
43          setup.py setup.cfg"
44DOCFILES="docs/Makefile docs/make.bat docs/*.rst
45          docs/contents docs/download docs/community
46          docs/_static docs/_templates"
47HTMLFILES="docs/_build/html"
48TESTFILES="tests/*.py"
49
50rm -rf $TD
51mkdir $TD
52mkdir -p $TD/docs/_build/html
53mkdir $TD/tests
54cp $MODFILES $TD
55cp -r $DOCFILES $TD/docs
56cp -r $HTMLFILES $TD/docs/_build
57cp $TESTFILES $TD/tests
58tar -cvzf $TF $TD
59chmod 644 $TF
60rm -rf $TD
61rm -f $DISTDIR/$SYMLINK
62ln -s $TD.tgz $DISTDIR/$SYMLINK
63
64echo "$TF has been built"
Note: See TracBrowser for help on using the repository browser.