[Qa-jenkins-scm] [jenkins.debian.net] 02/02: b/reproducible_html_specs: Drop -spec suffix from target

Holger Levsen holger at moszumanska.debian.org
Sun Aug 30 17:03:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit d7aef43a9d78857ae3412cf57107988356dfdb1b
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Aug 30 15:19:28 2015 +0100

    b/reproducible_html_specs: Drop -spec suffix from target
    
    For example
    
      https://reproducible-builds.org/specs/source-date-epoch/
      vs
      https://reproducible-builds.org/specs/source-date-epoch-spec/
    
    There is already a namespace of /specs/ so the suffix is unnecessary.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 bin/reproducible_html_specs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_html_specs.sh b/bin/reproducible_html_specs.sh
index 15aa7b4..c8956a2 100755
--- a/bin/reproducible_html_specs.sh
+++ b/bin/reproducible_html_specs.sh
@@ -12,7 +12,7 @@ common_init "$@"
 # build and publish the html version
 VERSION=$(git log -1 --pretty='%h')
 SPEC=$1
-TARGET="specs/$SPEC"
+TARGET="specs/$(basename $SPEC -spec)"
 make $SPEC.html
 mkdir -pv "$BASE/$TARGET"
 mv -v $SPEC.html "$BASE/$TARGET/index.html"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list