source: branches/4.x/mktar @ 695

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

Reorganize and improve the Sphinx docs

The Sphinx HTML docs can now also serve as home page for the project.
They can be built with the mkdocs script and can then be found in the
docs/_build/html directory (this needs sphinx and the cloud_sptheme).

The "actual" core docs can be found in docs/contents. The layout has
been modified to only show these pages with the typical documentation
relbars; the other pages of the homepage use a simpler layout. The
pg and pgdb documentation has been cut in chunks and can now be found
in docs/contents/pg and docs/contents/pgdb.

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#! /bin/sh
2
3VERSION=4.2
4DISTDIR=/u/pyg/files
5
6# small safety tests
7if [ ! -f module/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# Note that this does essentially the same as "python setup.py sdist",
30# except this also makes the docs and bundles them as source and html.
31
32TD=PyGreSQL-$VERSION
33TF=$DISTDIR/$TD.tgz
34
35MODFILES="module/pg.py module/pgdb.py module/pgmodule.c
36          module/pgfs.h module/pgtypes.h
37          module/setup.py module/setup.cfg"
38DOCFILES="docs/Makefile docs/make.bat docs/*.rst
39          docs/contents docs/download docs/community
40          docs/_static docs/_templates"
41HTMLFILES="docs/_build/html"
42TESTFILES="module/tests/*.py"
43TUTFILES="tutorial/*.py"
44
45echo "Making source tarball..."
46
47./mkdocs
48
49rm -rf $TD
50mkdir $TD
51mkdir -p $TD/docs/_build/html
52mkdir $TD/tests
53mkdir $TD/tutorial
54cp $MODFILES $TD
55cp -r $DOCFILES $TD/docs
56cp -r $HTMLFILES $TD/docs/_build
57cp $TESTFILES $TD/tests
58cp $TUTFILES $TD/tutorial
59tar -cvzf $TF $TD
60chmod 644 $TF
61rm -rf $TD
62rm -f $DISTDIR/$SYMLINK
63ln -s $TD.tgz $DISTDIR/$SYMLINK
64
65echo "$TF has been built"
66
Note: See TracBrowser for help on using the repository browser.