[frogr] meson: Add script to release tarballs, as we no longer use 'make dist'



commit 30eaee52d3f23804e5af6519cf81a6d3f47ce113
Author: Mario Sanchez Prada <msanchez gnome org>
Date:   Tue May 23 19:02:50 2017 +0100

    meson: Add script to release tarballs, as we no longer use 'make dist'

 make_release.sh |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/make_release.sh b/make_release.sh
new file mode 100755
index 0000000..b1fb836
--- /dev/null
+++ b/make_release.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -x
+
+test -n "$srcdir" || srcdir=$1
+test -n "$srcdir" || srcdir=.
+
+cd "$srcdir"
+
+PROJECT=frogr
+VERSION=$(git describe --abbrev=0 | sed 's/RELEASE_//g')
+NAME="${PROJECT}-${VERSION}"
+
+rm -f "${NAME}.tar"
+
+echo "Creating git tree archiveā€¦"
+git archive --prefix="${NAME}/" --format=tar HEAD > ${NAME}.tar
+
+rm -f "${NAME}.tar.xz"
+
+echo "Compressing archiveā€¦"
+xz -f "${NAME}.tar"
+
+set +x


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]