summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_specs.sh
blob: befba68bd1ab39a4741ec31e4d1cd80c1ea0886d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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

# build and publish the html version
VERSION=$(git log -1 --pretty='%h')
SPEC=$1
make $SPEC.html
mkdir -pv "$BASE/specs/$SPEC"
mv -v html/* "$BASE/specs/$SPEC"
irc_message "$REPRODUCIBLE_URL/specs/$SPEC updated to $VERSION"