~strahinja/ste

5e16ae2d37913c5b8f8030935f9f0ce6bc6fd617 — Страхиња Радић 10 months ago 4b282dc
pack.do: New file

Signed-off-by: Страхиња Радић <contact@strahinja.org>
1 files changed, 13 insertions(+), 0 deletions(-)

A pack.do
A pack.do => pack.do +13 -0
@@ 0,0 1,13 @@
redo all
redo-ifchange version
read VERSION <version
VERSION=$(echo $VERSION | sed 's/^v//')
DISTDIR=ste-$VERSION
mkdir $DISTDIR
for f in $(git ls-files); do
	d=$DISTDIR/$(dirname $f)
	mkdir -p $d
	cp $f $d
done 
tar cvf $DISTDIR.tar.xz $DISTDIR >/dev/null
rm -fr $DISTDIR