* Add undo support.

svn path=/trunk/kdenonbeta/kdecvs-build/; revision=321601
wilder
Michael Pyne 22 years ago
parent 7628413d67
commit 83e9bda5af
  1. 14
      make-package.sh

@ -21,6 +21,20 @@ if [ $EUID -ne 0 ]; then
fi
if [ $# -ne 1 ]; then
if [ $# -eq 2 -a $1 -eq --undo]; then
$VERSION="$2"
# Delete the file
rm -f "kdecvs-build-$VERSION.tar.gz"
# Untag the repository
CVS_VERSION=$(echo VERSION.$VERSION | sed 's/\./_/g' | tr a-z A-Z);
su $MY_USER -c "cvs tag -d $CVS_VERSION > /dev/null"
echo "CVS repository tags for $VERSION deleted."
exit 0
fi
echo "You must pass the program version on the command line!"
exit 1
fi

Loading…
Cancel
Save