summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_specs.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-25 12:54:16 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-25 12:54:16 +0200
commit97f15251c262dac6817f740f7448b6c07a948fa0 (patch)
treef73561f9a7f88ead90952c7f0236984860f0df89 /bin/reproducible_html_specs.sh
parent24d0dda356897aa0d329843c3927c63e902fde79 (diff)
downloadjenkins.debian.net-97f15251c262dac6817f740f7448b6c07a948fa0.tar.xz
reproducible: new job to build /specs/source_date_epoch/ from source-date-epoch-spec.git
Diffstat (limited to 'bin/reproducible_html_specs.sh')
-rwxr-xr-xbin/reproducible_html_specs.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/reproducible_html_specs.sh b/bin/reproducible_html_specs.sh
new file mode 100755
index 00000000..0a8ff888
--- /dev/null
+++ b/bin/reproducible_html_specs.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# Copyright © 2015 Mattia Rizzolo <mattia@mapreri.org>
+# Copyright © 2015 Holger Levsen <holger@mapreri.org>
+# released under the GPLv=2
+
+DEBUG=false
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+. /srv/jenkins/bin/reproducible_common.sh
+
+set -e
+
+VERSION=$(git log -1 --pretty='%h')
+SPEC=$1
+
+make html
+
+mkdir -pv "$BASE/specs/$1"
+
+mv -v html/* "$BASE/specs/$1"
+
+irc_message "$REPRODUCIBLE_URL/specs/$1 updated to $VERSION"
+
+