mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-02 01:21:14 +00:00
25 lines
453 B
Bash
Executable file
25 lines
453 B
Bash
Executable file
#!/bin/ksh
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "WARNING - version not given"
|
|
exit 1
|
|
fi
|
|
|
|
TAR=clusterssh-$1.tar.gz
|
|
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
|