From c591baa0a7d7c3061719421a5df9254b2b6be0e0 Mon Sep 17 00:00:00 2001 From: Richard Darst Date: Mon, 13 Jul 2015 19:12:19 +0300 Subject: [PATCH] add make_fulldist.sh for help with releasing --- make_fulldist.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 make_fulldist.sh diff --git a/make_fulldist.sh b/make_fulldist.sh new file mode 100644 index 0000000..09c45fd --- /dev/null +++ b/make_fulldist.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# +# This scripts make a full .tar.gz that contains dependencies for +# release. This is only needed to create an easy distribution if +# installing networkx and cloning pcd is too much. + +VER=`git describe HEAD --always` +echo "Creating distribution version $VER" + +DIST="dynbench-fulldist-$VER" +mkdir $DIST +DIST_FULLPATH=$PWD/$DIST + +cp --parents `git ls-files` $DIST + + +# In subshell +( + mkdir $DIST_FULLPATH/pcd/ + cd /home/darstr1/proj/pcd/ ; + cp --parents `git --git-dir=/home/darstr1/proj/pcd/.git ls-files` $DIST_FULLPATH/pcd/ +) + +cp -r ~/modules/install/networkx-1.9.1/networkx/ $DIST_FULLPATH/networkx/ + +tar czf $DIST.tar.bz2 $DIST/