[gnome-games/wip/exalm/make-tarball: 2/2] tools: Add make-tarball.sh



commit 63a1d13d548abdc6e9715e3d08feaf03bfd62615
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sat Aug 25 21:14:44 2018 +0500

    tools: Add make-tarball.sh
    
    Add a script for generating release tarball using 'git archive'.

 tools/make-tarball.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/tools/make-tarball.sh b/tools/make-tarball.sh
new file mode 100755
index 00000000..892b3f1a
--- /dev/null
+++ b/tools/make-tarball.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# A replacement for `ninja dist` until it can exclude `flatpak` and `tools` directories.
+
+PROJECT=gnome-games
+VERSION=$(grep -Pom1 "version:\s+'\K[\w.]+" ../meson.build)
+
+cd ..
+git archive --prefix $PROJECT-$VERSION/ -o tools/$PROJECT-$VERSION.tar HEAD .
+xz -f tools/$PROJECT-$VERSION.tar


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