Changeset 263


Ignore:
Timestamp:
Feb 17, 2006, 4:54:53 PM (14 years ago)
Author:
cito
Message:

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

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mktar

    r258 r263  
    2121fi
    2222
    23 TF=/usr/ftp/pub/distrib/PyGreSQL-$VERSION.tgz
    24 DOCFILES="docs/announce.txt docs/changelog.txt docs/install.txt"
     23DISTDIR=/usr/ftp/pub/distrib
     24DISTDIR=.
     25TD=PyGreSQL-$VERSION
     26TF=$DISTDIR/$TD.tgz
     27
    2528MODFILES="module/pg.py module/pgdb.py module/pgmodule.c module/setup.py"
    26 DISTFILES="$DOCFILES $MODFILES"
    27 CWD=`pwd`
     29DOCFILES="docs/*.txt docs/*.html docs/*.css"
     30TUTFILES="tutorial/*.py"
    2831
    29 rm -rf  PyGreSQL-$VERSION
    30 mkdir PyGreSQL-$VERSION PyGreSQL-$VERSION/tutorial
    31 cp ${DISTFILES} PyGreSQL-$VERSION
    32 cp tutorial/*.py PyGreSQL-$VERSION/tutorial
    33 tar cvzf $TF PyGreSQL-$VERSION
     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
    3444chmod 644 $TF
    35 rm -rf  PyGreSQL-$VERSION
    36 rm -f /usr/ftp/pub/distrib/$SYMLINK
    37 ln -s PyGreSQL-$VERSION.tgz /usr/ftp/pub/distrib/$SYMLINK
     45rm -rf $TD
     46rm -f $DISTDIR/$SYMLINK
     47ln -s $TD.tgz $DISTDIR/$SYMLINK
     48
    3849echo "$TF has been built"
    3950
Note: See TracChangeset for help on using the changeset viewer.