[core] add generic vector implementation
[lighttpd.git] / distribute.sh.in
bloba85fcecedc5a532c98740f89145b894ee8ebd239
1 #!/bin/sh
2 PACKAGE=@PACKAGE_TARNAME@
3 VERSION=@VERSION@
4 NAME=@PACKAGE_TARNAME@-@VERSION@
6 DISTDIR="/home/jan/wwwroot/servers/www.lighttpd.net/pages/download/"
7 RPMS="/home/jan/rpmbuild/RPMS/i386/${NAME}-1.i386.rpm \
8 /home/jan/rpmbuild/SRPMS/${NAME}-1.src.rpm"
9 FILES="${RPMS} ${NAME}.tar.gz \
10 NEWS.html \
11 ChangeLog \
12 release-news.${VERSION}.txt \
13 ${NAME}.tar.gz.sig"
14 DLURL="http://www.lighttpd.net/download"
15 pack=0
16 echo $1
17 case "$1" in
18 --pack) pack=1;;
19 esac
21 echo ${nopack}
23 if test x${pack} = x1; then
24 make distcheck && rpmbuild -ta --nodeps ${NAME}.tar.gz
25 gpg --detach-sign ${NAME}.tar.gz
26 rpm --addsign ${RPMS}
29 MD5RPM=`md5sum /home/jan/rpmbuild/RPMS/i386/${NAME}-1.i386.rpm| cut -b 1-32`
30 MD5SRPM=`md5sum /home/jan/rpmbuild/SRPMS/${NAME}-1.src.rpm| cut -b 1-32`
31 MD5TGZ=`md5sum ${NAME}.tar.gz| cut -b 1-32`
32 DATE=`date +'%Y-%m-%d %H:%M'`
33 NEWS=`cat NEWS | sed "/^- ${VERSION}/,/^-/p;d" | sed "/^- /d;/^$/d"`
34 DLNAME="${DLURL}/${NAME}"
36 cat > release-news.${VERSION}-mail.txt <<EOF
37 ${PACKAGE} ${VERSION} - ${DATE}
39 Changes
40 -------
41 ${NEWS}
43 Download
44 - ${NAME}-1.i386.rpm [built on Fedora Core 4]
45 ${DLNAME}-1.i386.rpm
46 MD5: ${MD5RPM}
47 - ${NAME}-1.src.rpm
48 ${DLNAME}-1.src.rpm
49 MD5: ${MD5SRPM}
50 - ${NAME}.tar.gz
51 ${DLNAME}.tar.gz
52 MD5: ${MD5TGZ}
53 Signature: ${DLNAME}.tar.gz.sig
55 EOF
57 cat > release-news.${VERSION}.txt <<EOF
58 ${PACKAGE} ${VERSION} - ${DATE}
60 Changes
61 -------
62 ${NEWS}
64 Checksums
65 - ${NAME}-1.i386.rpm [built on Fedora Core 4]
66 MD5: ${MD5RPM}
67 - ${NAME}-1.src.rpm
68 MD5: ${MD5SRPM}
69 - ${NAME}.tar.gz
70 MD5: ${MD5TGZ}
72 EOF
74 rst2html NEWS > NEWS.html
76 for i in ${DISTDIR}; do
77 cp -u ${FILES} $i
78 done
80 curdir=`pwd`
81 cd ~/wwwroot/servers/www.lighttpd.net/
82 make put
83 cd ${curdir}