clusterssh/upload

26 lines
453 B
Text
Raw Normal View History

#!/bin/ksh
if [ -z "$1" ]; then
echo "WARNING - version not given"
exit 1
fi
TAR=clusterssh-$1.tar.gz
2006-04-05 21:36:37 +00:00
RPM=clusterssh-$1-1.noarch.rpm
RPMPATH=/usr/src/redhat/RPMS/noarch/
if [ ! -r $TAR ]
then
echo "WARNING: cannot read file $TAR"
exit 1
fi
if [ ! -r $RPMPATH/$RPM ]
then
echo "WARNING: cannot read file $RPMPATH/$RPM"
exit 1
fi
scp $TAR $RPMPATH/$RPM shell-ssh.sf.net:
ssh shell-ssh.sf.net ncftpput upload.sourceforge.net incoming $TAR $RPM