From 7262da921c0f4e0a3cd09e9a84e641cb340ec26c Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 30 Aug 2015 15:15:26 +0100 Subject: b/reproducible_html_specs: Avoid DRY violation with a TARGET var Signed-off-by: Chris Lamb --- bin/reproducible_html_specs.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/reproducible_html_specs.sh') 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" -- cgit v1.2.3-54-g00ecf