[pango/wip/meson-only] build: Add a simple dist script



commit 9914fa19a723c539d1d15b82d5d87f4404034892
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri May 19 15:43:46 2017 +0100

    build: Add a simple dist script
    
    This allows us to create a tarball from the latest tag.

 build-aux/make_release.sh |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/build-aux/make_release.sh b/build-aux/make_release.sh
new file mode 100755
index 0000000..864adc9
--- /dev/null
+++ b/build-aux/make_release.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -x
+
+test -n "$srcdir" || srcdir=$1
+test -n "$srcdir" || srcdir=.
+
+cd "$srcdir"
+
+PROJECT=pango
+VERSION=$(git describe --abbrev=0)
+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]