ccollect/release.sh
2006-01-13 23:29:46 +01:00

15 lines
316 B
Bash
Executable file

NAME=$1
TARNAME=${NAME}.tar.bz2
DHOST=nico@creme.schottelius.org
DDIR=www/org/schottelius/linux/ccollect/
DESTINATION="$DHOST:$DDIR"
tar cvfj "$TARNAME"
--exclude=.git \
--exclude="conf/sources/*/destination/*" \
"$NAME"
scp "${TARNAME}" "$DESTINATION"
ssh "$DHOST" "( cd $DDIR; tar xfj \"$TARNAME\" )"