File: make-release

package info (click to toggle)
yaws 2.0.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,424 kB
  • ctags: 7,994
  • sloc: erlang: 40,751; sh: 6,466; ansic: 1,184; makefile: 898; lisp: 79; xml: 12; python: 3; php: 1
file content (30 lines) | stat: -rwxr-xr-x 787 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

SRCDIR=/home/klacke/yaws
BUILDDIR=/home/klacke/yaws
YAWS_VSN=2.0.4
INSTALL_BUILDER=${INSTALL_BUILDER:-/home/klacke/installbuilder-5.4.14}


echo packing release ${YAWS_VSN}

TAG="yaws-${YAWS_VSN}"
NAME_VERSION="yaws-${YAWS_VSN}"

# Add/update release tag
(cd ${SRCDIR} && git tag -f -a -m "version ${YAWS_VSN}" "$TAG")

# Create windows installer
(cd ${BUILDDIR} && make mkinstaller INSTALL_BUILDER=${INSTALL_BUILDER} >/dev/null)

# Create distribution tarball
(cd ${BUILDDIR} && make dist > /dev/null)

echo release resides in ${BUILDDIR}/$NAME_VERSION.tar.gz
echo release resides in ${BUILDDIR}/Yaws-${YAWS_VSN}-windows-installer.exe

echo "To push this do:"
#echo "git push origin revs/tags/yaws-${version}:revs/tags/yaws-${version}"
echo "ehhh or git push --tags"

exit 0