]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- use a tag prefix for some specs by default
authorankry <ankry@pld-linux.org>
Wed, 22 Oct 2003 15:41:09 +0000 (15:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.204

builder.sh

index d6c6a842a3718e69c505b1e53ac7014e62f13009..33c82e86d1b8c6a3b9087519b7e5acf7995b439e 100644 (file)
@@ -586,6 +586,10 @@ tag_files()
     if [ -n "$1$2$3$4$5$6$7$8$9${10}" ]; then
        echo "Version: $PACKAGE_VERSION"
        echo "Release: $PACKAGE_RELEASE"
+        # Check whether first character of PACKAGE_NAME is legal for tag name
+       if [ -z "${PACKAGE_NAME##[_0-9]*}" -a -z "$TAG_PREFIX" ]; then
+           TAG_PREFIX=tag_
+       fi
        TAGVER=$TAG_PREFIX$PACKAGE_NAME-`echo $PACKAGE_VERSION | sed -e "s/\./\_/g" -e "s/@/#/g"`-`echo $PACKAGE_RELEASE | sed -e "s/\./\_/g" -e "s/@/#/g"`
        # Remove #kernel.version_release from TAGVER because tagging sources
        # could occur with different kernel-headers than kernel-headers used at build time.
This page took 0.298395 seconds and 4 git commands to generate.