From 37c8dc6c89714e553bb5ce32a83910a1407d7067 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 3 Oct 2014 09:25:23 +0200 Subject: dist: create distribution script This script creates tarball having self-standing testsuite which is able to run on remote host. * dist: New file. * .gitignore: New file, ignore tarballs. --- .gitignore | 1 + dist | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 .gitignore create mode 100755 dist diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..335ec95 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.tar.gz diff --git a/dist b/dist new file mode 100755 index 0000000..ef20bd6 --- /dev/null +++ b/dist @@ -0,0 +1,10 @@ +#!/bin/bash + +name=postgresql-setup-tests +tarball=$name.tar.gz +test -e .git || exit 1 +what=`ls -1 | grep -v $tarball` +mkdir $name +cp $what $name -R +tar -czf $tarball $name +rm -rf $name -- cgit