libreoffice-online/maketarballfordeb.sh.in
Andras Timar 1c84d485af no error if dir exists (maketarballfordeb.sh)
Change-Id: I0e2de7513c31e66200bed3d1cae3662d7404fa83
2016-12-29 19:56:10 +01:00

14 lines
437 B
Bash

#!/bin/sh
TEMPDIR=`mktemp -d`
SRCDIR=`pwd`
cd $TEMPDIR
tar xzf $SRCDIR/loolwsd-@PACKAGE_VERSION@.tar.gz
cp -a $SRCDIR/debian loolwsd-@PACKAGE_VERSION@
mkdir -p loolwsd-@PACKAGE_VERSION@/loleaflet
cd loolwsd-@PACKAGE_VERSION@/loleaflet
tar xzf $SRCDIR/loleaflet/loleaflet-@PACKAGE_VERSION@.tar.gz --strip-components=1
cd $TEMPDIR
tar czf $SRCDIR/loolwsd_@PACKAGE_VERSION@.orig.tar.gz loolwsd-@PACKAGE_VERSION@
cd $SRCDIR
rm -rf $TEMPDIR