summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_specs.sh
blob: 0a8ff888aa94f0ac507da043053a108f385bd85c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"