1
0
mirror of https://github.com/coturn/coturn.git synced 2025-08-15 18:57:06 +02:00
coturn/examples/scripts/pack.sh
Mészáros Mihály 6d605d353f Bump version
2020-06-24 17:05:18 +02:00

25 lines
400 B
Bash
Executable File

#!/bin/sh
# Run it from the root of the coturn source tree
V=4.5.1.3
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}/
#tell tar to not include the metadata
COPYFILE_DISABLE=1 tar cvfz ../${DDIR}.tar.gz ${DDIR}
cd ..
rm -rf tmp
cp -a ${SRCDIR}/ChangeLog ${PACKDIR}