diff options
author | Chris Lamb <lamby@debian.org> | 2015-08-30 15:15:26 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-30 19:01:53 +0200 |
commit | 7262da921c0f4e0a3cd09e9a84e641cb340ec26c (patch) | |
tree | 9006c1f64d8891c477824449b198e055cdae87dc /bin | |
parent | f56b300aabd2d9673981b1b9b3a4bba75d15517b (diff) | |
download | jenkins.debian.net-7262da921c0f4e0a3cd09e9a84e641cb340ec26c.tar.xz |
b/reproducible_html_specs: Avoid DRY violation with a TARGET var
Signed-off-by: Chris Lamb <lamby@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_specs.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_html_specs.sh b/bin/reproducible_html_specs.sh index fb50ae79..15aa7b46 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" |