source: branches/4.x/mktar @ 777

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

Change name of links in mktar script

The source distribution is now called *.tar.gz
(since this is common and setup.py creates it like this),
but the links were still *.gz

Also, add README file to setup.cfg for PyPi?

  • Property svn:executable set to *
File size: 810 bytes
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.tar.gz
23else
24        PACKAGE=pygresql.pkg
25        SYMLINK=PyGreSQL.tar.gz
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# Package as source distribution.
37
38rm -rf build dist
39
40python setup.py sdist
41
42DF=`ls dist`
43TF=$DISTDIR/$DF
44
45cp dist/$DF $TF
46chmod 644 $TF
47
48rm -f $DISTDIR/$SYMLINK
49ln -s $DF $DISTDIR/$SYMLINK
50
51echo "$TF has been built."
Note: See TracBrowser for help on using the repository browser.