blob: e848c5f39090d3c41e205bd1201df2b4948e2e51 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#!/bin/sh
PACKAGE=@PACKAGE_TARNAME@
VERSION=@VERSION@
NAME=@PACKAGE_TARNAME@-@VERSION@
DISTDIR="/home/jan/wwwroot/servers/www.lighttpd.net/pages/download/"
RPMS="/home/jan/rpmbuild/RPMS/i386/${NAME}-1.i386.rpm \
/home/jan/rpmbuild/SRPMS/${NAME}-1.src.rpm"
FILES="${RPMS} ${NAME}.tar.gz \
NEWS.html \
ChangeLog \
release-news.${VERSION}.txt \
${NAME}.tar.gz.sig"
DLURL="https://www.lighttpd.net/download"
pack=0
echo $1
case "$1" in
--pack) pack=1;;
esac
echo ${nopack}
if test x${pack} = x1; then
make distcheck && rpmbuild -ta --nodeps ${NAME}.tar.gz
gpg --detach-sign ${NAME}.tar.gz
rpm --addsign ${RPMS}
fi
MD5RPM=`md5sum /home/jan/rpmbuild/RPMS/i386/${NAME}-1.i386.rpm| cut -b 1-32`
MD5SRPM=`md5sum /home/jan/rpmbuild/SRPMS/${NAME}-1.src.rpm| cut -b 1-32`
MD5TGZ=`md5sum ${NAME}.tar.gz| cut -b 1-32`
DATE=`date +'%Y-%m-%d %H:%M'`
NEWS=`cat NEWS | sed "/^- ${VERSION}/,/^-/p;d" | sed "/^- /d;/^$/d"`
DLNAME="${DLURL}/${NAME}"
cat > release-news.${VERSION}-mail.txt <<EOF
${PACKAGE} ${VERSION} - ${DATE}
Changes
-------
${NEWS}
Download
- ${NAME}-1.i386.rpm [built on Fedora Core 4]
${DLNAME}-1.i386.rpm
MD5: ${MD5RPM}
- ${NAME}-1.src.rpm
${DLNAME}-1.src.rpm
MD5: ${MD5SRPM}
- ${NAME}.tar.gz
${DLNAME}.tar.gz
MD5: ${MD5TGZ}
Signature: ${DLNAME}.tar.gz.sig
EOF
cat > release-news.${VERSION}.txt <<EOF
${PACKAGE} ${VERSION} - ${DATE}
Changes
-------
${NEWS}
Checksums
- ${NAME}-1.i386.rpm [built on Fedora Core 4]
MD5: ${MD5RPM}
- ${NAME}-1.src.rpm
MD5: ${MD5SRPM}
- ${NAME}.tar.gz
MD5: ${MD5TGZ}
EOF
rst2html NEWS > NEWS.html
for i in ${DISTDIR}; do
cp -u ${FILES} $i
done
curdir=`pwd`
cd ~/wwwroot/servers/www.lighttpd.net/
make put
cd ${curdir}
|