File: publish.sh

package info (click to toggle)
cvstrac 1.1.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 824 kB
  • ctags: 680
  • sloc: ansic: 13,963; tcl: 111; makefile: 72; sh: 19
file content (24 lines) | stat: -rw-r--r-- 662 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# Run this script to send CVSTrac to the website.
#
SRCDIR=../cvstrac

VERS=`echo '@VERSION@' | sed -f $SRCDIR/VERSION`
make
strip cvstrac
mv cvstrac cvstrac-$VERS.bin
gzip -f cvstrac-$VERS.bin
DIR=`pwd`
cd $SRCDIR/..
mv cvstrac cvstrac-$VERS
tar czf $DIR/cvstrac-$VERS.tar.gz `find cvstrac-$VERS | grep -v CVS`
mv cvstrac-$VERS cvstrac
cd $DIR
echo 'rsync to www.hwaci.com'
export RSYNC_RSH=ssh
rsync cvstrac-$VERS.bin.gz index.html cvstrac-$VERS.tar.gz \
   [email protected]:public_html/sw/cvstrac
echo 'rsync to www.cvstrac.org'
rsync cvstrac-$VERS.bin.gz index.html cvstrac-$VERS.tar.gz \
   [email protected]:/home/www/www_cvstrac_org.website