added some error checking to scp and cvs commands

git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@162 630f3fb4-fbd1-0310-a574-b293cca3120f
This commit is contained in:
Jason Chu 2004-08-22 20:24:02 +00:00
parent 699aa9e627
commit 87307609b8
1 changed files with 18 additions and 0 deletions

View File

@ -32,15 +32,33 @@ elif [ "$cmd" == "unstablepkg" ]; then
fi
scp $pkgfile archlinux.org:/home/ftp/$repo/os/$CARCH
if [ $? -ne 0 ]; then
echo "Cancelled"
exit 1
fi
echo "===> Uploaded $pkgfile"
if [ "$1" != "" ]; then
cvs commit -m "upgpkg: $pkg $ver
$1" > /dev/null
if [ $? -ne 0 ]; then
echo "Cancelled"
exit 1
fi
echo "===> Commited with \"upgpkg: $pkg $ver
$1\" message"
else
cvs commit -m "upgpkg: $pkg $ver" > /dev/null
if [ $? -ne 0 ]; then
echo "Cancelled"
exit 1
fi
echo "===> Commited with \"upgpkg: $pkg $ver\" message"
fi
cvs tag -c -F -R $tag > /dev/null
if [ $? -ne 0 ]; then
echo "Cancelled"
exit 1
fi
echo "===> Tagged as $tag"