comparison deploy/src/archive.sh @ 1161:0ef711a400a2 spectrogram-minor-refactor

Merge from default branch
author Chris Cannam
date Mon, 13 Jun 2016 12:46:36 +0100
parents 0fd39f67a6ee
children bd14a0f69b60
comparison
equal deleted inserted replaced
1130:ecb946764afe 1161:0ef711a400a2
1 #!/bin/bash 1 #!/bin/bash
2
3 set -eu
2 4
3 tag=`hg tags | grep '^sv_v' | head -1 | awk '{ print $1; }'` 5 tag=`hg tags | grep '^sv_v' | head -1 | awk '{ print $1; }'`
4 6
5 v=`echo "$tag" |sed 's/sv_v//'` 7 v=`echo "$tag" | sed 's/sv_v//' | sed 's/_.*$//'`
6 8
7 echo "Packaging up version $v from tag $tag..." 9 echo
10 echo -n "Packaging up version $v from tag $tag... "
8 11
9 hg archive -r"$tag" --subrepos --exclude sv-dependency-builds /tmp/sonic-visualiser-"$v".tar.gz 12 hg archive -r"$tag" --subrepos --exclude sv-dependency-builds /tmp/sonic-visualiser-"$v".tar.gz
10 13
14 echo Done
15 echo
16
17 # Test that the appropriate version of the docs exist on the website
18
19 doc_url="http://sonicvisualiser.org/doc/reference/$v/en/"
20 doc_status=$(curl -sL -w "%{http_code}" "$doc_url" -o /dev/null)
21
22 if [ "$doc_status" = "404" ]; then
23 echo "*** WARNING: Documentation URL returns a 404:"
24 echo "*** $doc_url"
25 echo "*** Please fix this before release!"
26 echo
27 fi