]> git.ipfire.org Git - thirdparty/chrony.git/blame - make_release
ntp: fix log message for replaced source
[thirdparty/chrony.git] / make_release
CommitLineData
40d33cc6
ML
1#!/bin/sh
2
546e5e23 3LANG=C.UTF-8
1cb8167b
ML
4export LANG
5
40d33cc6
ML
6if [ $# -ne 1 ]; then
7 echo "Usage : $0 <version>"
8 exit 2
9fi
10
11version=$1
71602b8e 12tag=$version
40d33cc6
ML
13subdir=chrony-${version}
14
15umask 022
16
17if [ ! -d .git ]; then
18 echo "No .git subdirectory?"
19 exit 3
20fi
21
22[ -d RELEASES ] || mkdir RELEASES
23
40d33cc6
ML
24rm -rf RELEASES/$subdir
25
71602b8e
ML
26if [ $version != test ]; then
27 git tag -s $tag || exit 1
28else
29 tag=HEAD
30fi
31
32git archive --format=tar --prefix=RELEASES/${subdir}/ $tag | \
40d33cc6
ML
33 tar xf - || exit 1
34
35cd RELEASES/$subdir || exit 1
36
37echo $version > version.txt
38
546e5e23 39./configure && make -C doc man txt || exit 1
1cb8167b 40
546e5e23
ML
41iconv -f utf-8 -t ascii//TRANSLIT < doc/installation.txt > INSTALL
42iconv -f utf-8 -t ascii//TRANSLIT < doc/faq.txt > FAQ
41266cba 43
aa0c0fc4 44make distclean
546e5e23 45rm -f make_release .gitignore
40d33cc6
ML
46
47cd ..
916ca7ab 48tar cv --owner root --group root $subdir | gzip -9 > ${subdir}.tar.gz
383a3637 49
71602b8e
ML
50[ $version != test ] && \
51 gpg -b -a -o ${subdir}-tar-gz-asc.txt ${subdir}.tar.gz