[Qa-jenkins-scm] [jenkins.debian.net] 01/02: b/reproducible_html_specs: Avoid DRY violation with a TARGET var

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 7262da921c0f4e0a3cd09e9a84e641cb340ec26c
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Aug 30 15:15:26 2015 +0100

    b/reproducible_html_specs: Avoid DRY violation with a TARGET var
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 bin/reproducible_html_specs.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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

-- 
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