5 BASEDOWNLOADURL
="http://download.lighttpd.net/lighttpd/releases-1.4.x"
6 SNAPSHOTURL
="http://download.lighttpd.net/lighttpd/snapshots-1.4.x"
10 # may take one argument for prereleases like
11 # ./packdist.sh [--nopack] rc1-r10
14 echo "./packdist.sh [--nopack] [--help] [rc1-r10]" >&2
18 if [ ! -f ${SRCTEST} ]; then
19 echo "Current directory is not the source directory"
25 while [ $# -gt 0 ]; do
34 if [ -n "$append" ]; then
35 echo "Only one append allowed" >&2
40 BASEDOWNLOADURL
="${SNAPSHOTURL}"
43 echo "Unknown option '$1'" >&2
52 echo "Command failed: $*"
57 # summarize all changes since last release
60 cat ..
/NEWS |
sed "/^- ${version}/,/^-/p;d" |
sed "/^- /d;/^$/d" |
sed -e 's/^ \*/\*/'
65 # genereate links in old textile format "text":url
67 local repourl ticketurl inf out
68 repourl
="http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/"
69 ticketurl
="http://redmine.lighttpd.net/issues/"
73 sed -e 's%\(http://[a-zA-Z0-9.:_/\-]\+\)%"\1":\1%g' |
74 sed -e 's%#\([0-9]\+\)%"#\1":'"${ticketurl}"'\1%g' |
75 sed -e 's%r\([0-9]\+\)%"r\1":'"${repourl}"'\1%g' |
76 sed -e 's%\(CVE-[0-9\-]\+\)%"\1":http://cve.mitre.org/cgi-bin/cvename.cgi?name=\1%g' |
80 genlinks_downloads
() {
81 local repourl ticketurl inf out
82 repourl
="http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/"
83 ticketurl
="http://redmine.lighttpd.net/issues/"
87 sed -e 's%\(http://[a-zA-Z0-9.:_/\-]\+\)%"\1":\1%g' |
93 if [ -z "${append}" ]; then
100 author_email: ${AUTHOR}@lighttpd.net
109 h2. Important changes
120 h2. Changes from ${prevversion}
129 title: 'PRE-RELEASE: lighttpd ${version}${append}'
139 We would like to draw your attention to the latest pre-release of the stable 1.4 branch of lighttpd.
141 You can get the pre-release from these urls:
146 Please test it as much as possible and provide us with feedback.
147 A lot of testing ensures a good release.
149 <!-- TODO: describe major changes -->
153 h4. Changes from ${prevversion}
160 If you want to get the latest source for any branch, you can get it from our svn repository.
161 Documentation to do so can be obtained from this page: "DevelSubversion":http://redmine.lighttpd.net/projects/lighttpd/wiki/DevelSubversion
162 Bug reports or feature requests can be filed in our ticket system: "New Issue":http://redmine.lighttpd.net/projects/lighttpd/issues/new
163 Please make sure to check if there isn't a ticket already here: "Issues":http://redmine.lighttpd.net/projects/lighttpd/issues
164 Perhaps you also want to have a look at our "download site":http://download.lighttpd.net/lighttpd/
166 Thank you for flying light.
171 if [ ${dopack} = "1" ]; then
174 if [ -d distbuild
]; then
175 # make distcheck may leave readonly files
176 chmod u
+w
-R distbuild
180 force mkdir distbuild
183 force ..
/configure
--prefix=/usr
190 force
make dist-bzip2
196 version
=`./config.status -V | head -n 1 | cut -d' ' -f3`
197 name
="${PACKAGE}-${version}"
198 if [ -n "${append}" ]; then
199 cp "${name}.tar.gz" "${name}${append}.tar.gz"
200 cp "${name}.tar.bz2" "${name}${append}.tar.bz2"
201 cp "${name}.tar.xz" "${name}${append}.tar.xz"
202 name
="${name}${append}"
205 force sha256sum
"${name}.tar."{gz
,bz2
,xz
} > "${name}.sha256sum"
207 rm -f "${name}".
tar.
*.asc
209 force gpg
-a --output "${name}.tar.gz.asc" --detach-sig "${name}.tar.gz"
210 force gpg
-a --output "${name}.tar.bz2.asc" --detach-sig "${name}.tar.bz2"
211 force gpg
-a --output "${name}.tar.xz.asc" --detach-sig "${name}.tar.xz"
214 echo "* ${BASEDOWNLOADURL}/${name}.tar.gz"
215 echo "** GPG signature: ${BASEDOWNLOADURL}/${name}.tar.gz.asc"
216 echo "** SHA256: @$(sha256sum ${name}.tar.gz | cut -d' ' -f1)@"
217 echo "* ${BASEDOWNLOADURL}/${name}.tar.bz2"
218 echo "** GPG signature: ${BASEDOWNLOADURL}/${name}.tar.bz2.asc"
219 echo "** SHA256: @$(sha256sum ${name}.tar.bz2 | cut -d' ' -f1)@"
220 echo "* ${BASEDOWNLOADURL}/${name}.tar.xz"
221 echo "** GPG signature: ${BASEDOWNLOADURL}/${name}.tar.xz.asc"
222 echo "** SHA256: @$(sha256sum ${name}.tar.xz | cut -d' ' -f1)@"
223 echo "* SHA256 checksums: ${BASEDOWNLOADURL}/${name}.sha256sum"
227 echo "* \"${name}.tar.gz\":${BASEDOWNLOADURL}/${name}.tar.gz (\"GPG signature\":${BASEDOWNLOADURL}/${name}.tar.gz.asc)"
228 echo "** SHA256: @$(sha256sum ${name}.tar.gz | cut -d' ' -f1)@"
229 echo "* \"${name}.tar.bz2\":${BASEDOWNLOADURL}/${name}.tar.bz2 (\"GPG signature\":${BASEDOWNLOADURL}/${name}.tar.bz2.asc)"
230 echo "** SHA256: @$(sha256sum ${name}.tar.bz2 | cut -d' ' -f1)@"
231 echo "* \"${name}.tar.xz\":${BASEDOWNLOADURL}/${name}.tar.xz (\"GPG signature\":${BASEDOWNLOADURL}/${name}.tar.xz.asc)"
232 echo "** SHA256: @$(sha256sum ${name}.tar.xz | cut -d' ' -f1)@"
233 echo "* \"SHA256 checksums\":${BASEDOWNLOADURL}/${name}.sha256sum"
237 force genlinks_changes CHANGES
238 #force genlinks_downloads DOWNLOADS
240 prevversion
="${version%.*}.$((${version##*.} - 1))"
242 if [ -z "${append}" ]; then
248 * Version: ${version}
249 * Previous version: [[Release-${prevversion//./_}|${prevversion}]]
252 * Release Purpose: bug fixes
253 * Release manager: $AUTHOR
254 * Released date: $(date +"%Y-%m-%d")
256 h1. Important changes from ${prevversion}
266 h1. Changes from ${prevversion}
272 h1. External references
274 * http://www.lighttpd.net/$(date +"%Y/%m/%d")/${version//./-}
277 ) > "Release-${version//./_}.page"
279 cat "Release-${version//./_}.page"
288 blog_post
> $
(date +"%Y-%m-%d")-"${version//./-}.textile"
289 cat $
(date +"%Y-%m-%d")-"${version//./-}.textile"
295 echo wget
"${BASEDOWNLOADURL}/${name}".'{tar.gz,tar.bz2,tar.xz,sha256sum}; sha256sum -c '${name}'.sha256sum'