From 8b46733fa15ae6c33fd087f51f7ad8941dd5e43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Mih=C3=A1ly?= Date: Wed, 16 Jan 2019 14:52:36 +0100 Subject: [PATCH] Add relase script pack.sh --- examples/scripts/pack.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 examples/scripts/pack.sh diff --git a/examples/scripts/pack.sh b/examples/scripts/pack.sh new file mode 100755 index 00000000..342ac78b --- /dev/null +++ b/examples/scripts/pack.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# Run it from the root of the coturn source tree + +V=4.5.1.0 + +PACKDIR=`pwd`/../coturn-releases/ +SRCDIR=`pwd` +DDIR=turnserver-${V} + +cd ${SRCDIR}/ +make distclean +cd ${PACKDIR} +rm -rf tmp +mkdir tmp +cd tmp +mkdir ${DDIR} +cp -R ${SRCDIR}/* ${DDIR}/ +tar cvfz ../${DDIR}.tar.gz ${DDIR} +cd .. +rm -rf tmp + +cp -a ${SRCDIR}/ChangeLog ${PACKDIR}