mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
[ darkhttpd-1.9 release ]
Add release script.
This commit is contained in:
parent
049e842399
commit
5d1bdd1fd3
1
REL-ENG
1
REL-ENG
@ -1 +0,0 @@
|
|||||||
Before rolling out a new version, make sure you update pkgname in the C file.
|
|
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
static const char
|
static const char
|
||||||
pkgname[] = "darkhttpd/1.8",
|
pkgname[] = "darkhttpd/1.9.from.git",
|
||||||
copyright[] = "copyright (c) 2003-2013 Emil Mikulic";
|
copyright[] = "copyright (c) 2003-2013 Emil Mikulic";
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
|
52
release.sh
Executable file
52
release.sh
Executable file
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# release.sh: script to roll a release tarball.
|
||||||
|
# copyright (c) 2006-2013 Emil Mikulic.
|
||||||
|
#
|
||||||
|
# This is for developer use only and lives in the git repo but
|
||||||
|
# shouldn't end up in a tarball.
|
||||||
|
#
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo "usage: $0 1.123" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
NAME=darkhttpd
|
||||||
|
VERSION="$1"
|
||||||
|
|
||||||
|
files="\
|
||||||
|
Makefile \
|
||||||
|
darkhttpd.c \
|
||||||
|
README \
|
||||||
|
"
|
||||||
|
|
||||||
|
say() {
|
||||||
|
echo ==\> "$@" >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
run() {
|
||||||
|
say "$@"
|
||||||
|
"$@" || { say ERROR!; exit 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
PKG=$NAME-$VERSION
|
||||||
|
say releasing $PKG
|
||||||
|
devel/clang-warns
|
||||||
|
devel/warns
|
||||||
|
# TODO: checker, tests
|
||||||
|
if git status --porcelain | egrep -v '^\?\?' -q; then
|
||||||
|
say ERROR: uncommitted changes:
|
||||||
|
git status
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
run mkdir $PKG
|
||||||
|
run cp -r $files $PKG/.
|
||||||
|
sed -r -e \
|
||||||
|
'/pkgname\[\]\s+= "/s/"darkhttpd\/[^"]+"/"'$NAME'\/'$VERSION'"/' \
|
||||||
|
darkhttpd.c > $PKG/darkhttpd.c || { echo sed failed; exit 1; }
|
||||||
|
# package it up
|
||||||
|
run tar chof $PKG.tar $PKG
|
||||||
|
run bzip2 -9vv $PKG.tar
|
||||||
|
say output:
|
||||||
|
ls -l $PKG.tar.bz2
|
||||||
|
say FINISHED!
|
Loading…
Reference in New Issue
Block a user