| #!/bin/sh |
| |
| #IF RUNNING ON ZONES |
| WEBDIR=/var/www/buildbot.spamassassin.org/staging/website |
| #WEBDIR=/usr/src/Mail-SpamAssassin/site |
| vers=3.4.x |
| |
| if [ -z "$PERL" ]; then |
| if [ -x /home/jm/perl584/bin/perl ]; then |
| PERL=/home/jm/perl584/bin/perl |
| else |
| #IF RUNNING ON ZONES |
| PERL=perl |
| #PERL=/usr/local/bin/perl |
| fi |
| fi |
| |
| fulldir=$WEBDIR/full/$vers |
| [ -d $fulldir ] || mkdir -p $fulldir |
| |
| $PERL Makefile.PL PERL=$PERL < /dev/null |
| make |
| make text_html_doc || exit 1 |
| |
| rm -rf $fulldir/doc |
| mkdir $fulldir |
| tar cf - \ |
| --exclude=CVS --exclude='.#*' \ |
| --exclude=.svn \ |
| --exclude='logs' --exclude='*.tar.gz' --exclude='*.zip' \ |
| --exclude='*.log' --exclude='*.o' \ |
| --exclude='o' --exclude='out' \ |
| --exclude='tst' \ |
| --exclude='blib' --exclude='Mail-SpamAssassin-*' \ |
| doc | ( cd $fulldir ; tar xf - ) |
| |
| chmod -R g+w $fulldir |
| |