Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 53 lines (34 sloc) 1.121 kb
#!/bin/sh
#set -x
# determine absolute path to source dir root
srctree="$(cd $(dirname "$0") && cd .. && pwd)"
# change to scripts dir (or wherever this script resides)
cd "$(dirname "$0")"
. ../vsn.mk
echo packing release ${YAWS_VSN}
Y=`echo ${YAWS_VSN} | sed 's/\./-/g'`
TAG="yaws-${YAWS_VSN}"
NAME_VERSION="yaws-${YAWS_VSN}"
if [ ! -f ./make-release ]; then
echo "need to be in scripts dir"; exit 1;
fi
(cd ../win32; make clean all)
cd ../..
export GIT_DIR="$srctree/.git"
if test -d "$GIT_DIR" && test -f "$GIT_DIR/config"; then :;
else
echo "Fatal: Could not find GIT_DIR at $GIT_DIR."
exit 13
fi
# Add/update release tag
git tag -f -a -m "version ${Y}" "$TAG"
# Create release .tar.gz of sources
# (including symlink yaws -> $NAME_VERSION)
rm -rf tmp 2> /dev/null
mkdir tmp
git archive --format=tar --prefix="$NAME_VERSION/" "$TAG" | (cd tmp && tar xf -)
ln -s $NAME_VERSION tmp/yaws
(cd tmp && tar cfz - yaws "$NAME_VERSION") > "$NAME_VERSION.tar.gz"
echo release resides in `pwd`/$NAME_VERSION.tar.gz
echo release resides in `pwd`/yaws/win32/Yaws-${YAWS_VSN}-windows-installer.exe
exit 0
Jump to Line
Something went wrong with that request. Please try again.