What's cooking (2013/07 #03)
[git.git] / RelBuild
blobe63811142ccf816c85b062b96da8b14009321aa7
1 #!/bin/sh
3 version=$(git describe --exact) &&
4 label=$(echo "$version" | sed -e 's|^v||') &&
5 version=$(echo "$label" | sed -e 's|-|.|g') || exit
7 make clean && make dist &&
9 ASCIIDOC_NO_ROFF=YesPlease \
10 ASCIIDOC8=YesPlease \
11 MAN_BASE_URL="git-htmldocs/" \
12 make dist-doc || exit
14 # The above used to be
15 # MAN_BASE_URL="http://www.kernel.org/pub/software/scm/git/docs/"
17 files="
18 git-$version.tar.gz
19 git-htmldocs-$version.tar.gz
20 git-manpages-$version.tar.gz
23 for file in $files
25 test -f $file || exit
26 done
28 sha1sum $files | gpg --clearsign >git-$version.sign
30 for file in $files
32 gzip -dc <"$file" >"${file%.gz}" &&
33 gpg -b "${file%.gz}" &&
34 rm "${file%.gz}" || exit
35 done
37 ls -l git-$version.sign $files git*-$version.tar.sig