Add IDMETA + mkdist.sh
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 16 Jun 2014 13:59:45 +0000 (13:59 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 16 Jun 2014 13:59:45 +0000 (13:59 +0000)
IDMETA [new file with mode: 0644]
mkdist.sh [new file with mode: 0755]

diff --git a/IDMETA b/IDMETA
new file mode 100644 (file)
index 0000000..f05f70b
--- /dev/null
+++ b/IDMETA
@@ -0,0 +1,4 @@
+NAME=mp-xquery
+CENTOS_DIST="centos6"
+VERSION=0.1
+ARCHS=amd64
diff --git a/mkdist.sh b/mkdist.sh
new file mode 100755 (executable)
index 0000000..fbcf90a
--- /dev/null
+++ b/mkdist.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+. ./IDMETA
+set -x
+git log >ChangeLog
+git archive --format=tar --prefix=$NAME-$VERSION/ HEAD > $NAME-$VERSION.tar
+tar xf $NAME-$VERSION.tar
+cp ChangeLog $NAME-$VERSION
+cd $NAME-$VERSION
+rm -fr debian
+cd ..
+tar cfz $NAME-$VERSION.tar.gz $NAME-$VERSION
+rm $NAME-$VERSION.tar
+rm -r $NAME-$VERSION
+exit 0
+
+