From f02788de0d10ace3d555aad540437a825299bc98 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 8 Oct 2002 13:42:48 +0000 Subject: [PATCH] - all -T except -Tv were broken; fixed (I hope) Changed files: builder.sh -> 1.117 --- builder.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/builder.sh b/builder.sh index a76d860..c7dda3d 100644 --- a/builder.sh +++ b/builder.sh @@ -362,8 +362,8 @@ tag_files() if [ -n "$1$2$3$4$5$6$7$8$9${10}" ]; then echo $PACKAGE_VERSION echo $PACKAGE_RELEASE - TAG=$PACKAGE_NAME-`echo $PACKAGE_VERSION | sed -e "s/\./\_/g"`-`echo $PACKAGE_RELEASE | sed -e "s/\./\_/g"` - echo "CVS tag: $TAG" + TAGVER=$PACKAGE_NAME-`echo $PACKAGE_VERSION | sed -e "s/\./\_/g"`-`echo $PACKAGE_RELEASE | sed -e "s/\./\_/g"` + echo "CVS tag: $TAGVER" OPTIONS="tag -F" if [ -n "$CVSROOT" ]; then @@ -373,14 +373,24 @@ tag_files() cd $SOURCE_DIR for i in $TAG_FILES; do if [ -f `nourl $i` ]; then - cvs $OPTIONS $TAG `nourl $i` + if [ "$TAG_VERSION" = "yes" ]; then + cvs $OPTIONS $TAGVER `nourl $i` + fi + if [ -n "$TAG" ]; then + cvs $OPTIONS $TAG `nourl $i` + fi else Exit_error err_no_source_in_repo $i fi done cd $SPECS_DIR - cvs $OPTIONS $TAG $SPECFILE + if [ "$TAG_VERSION" = "yes" ]; then + cvs $OPTIONS $TAGVER $SPECFILE + fi + if [ -n "$TAG" ]; then + cvs $OPTIONS $TAG $SPECFILE + fi unset OPTIONS fi @@ -572,6 +582,7 @@ while test $# -gt 0 ; do shift;; -Tv | --tag-version ) COMMAND="tag"; + TAG="" TAG_VERSION="yes" shift;; -T | --tag ) -- 2.44.0