From 5da337fd68cc57039bed885d131ef680abcbb102 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 25 Dec 2012 19:52:49 +0100 Subject: [PATCH] add script to create tarball distribution --- create-dist.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 create-dist.sh diff --git a/create-dist.sh b/create-dist.sh new file mode 100755 index 0000000..b28a24e --- /dev/null +++ b/create-dist.sh @@ -0,0 +1,23 @@ +#!/bin/sh +if [[ -z "$VER" ]] ; then + echo set VER! + exit +fi +me=`pwd` + +proj=ixchat +projver=${proj}-${VER} +repo=http://github.com/rofl0r/$proj +repo=~/cdev/cdev/$proj + +tempdir=/tmp/${proj}-0000 +rm -rf $tempdir +mkdir -p $tempdir + +cd $tempdir +git clone $repo $projver +rm -rf $projver/.git +rm -rf $projver/docs + +tar cJf $proj.tar.xz $projver/ +mv $proj.tar.xz $me/$projver.tar.xz -- 2.11.4.GIT