summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2015-08-30 15:15:26 +0100
committerHolger Levsen <holger@layer-acht.org>2015-08-30 19:01:53 +0200
commit7262da921c0f4e0a3cd09e9a84e641cb340ec26c (patch)
tree9006c1f64d8891c477824449b198e055cdae87dc /bin
parentf56b300aabd2d9673981b1b9b3a4bba75d15517b (diff)
downloadjenkins.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-xbin/reproducible_html_specs.sh7
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"