speakup (3.1.6.dfsg.1-2) makedist

Summary

 makedist |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

    
download this patch

Patch contents

--- speakup-3.1.6.dfsg.1.orig/makedist
+++ speakup-3.1.6.dfsg.1/makedist
@@ -0,0 +1,17 @@
+#!/bin/bash
+# Makes a tarball release
+
+SPKVER=$(./version)
+PREFIX=speakup-${SPKVER}
+REL=${1:-v${SPKVER}}
+
+if [ "$REL" != "v${SPKVER}" ]; then
+	TIMESTAMP=$(git show $REL --pretty=format:%ai | head -1)
+	PATCHLEVEL=$(date --utc -d "$TIMESTAMP" +_p%Y%m%d%H%M)
+fi
+
+TARFILE=${PREFIX}${PATCHLEVEL}.tar
+
+git archive --prefix=${PREFIX}/ $REL -o ${TARFILE}
+bzip2 ${TARFILE}
+echo "Produced ${TARFILE}.bz2"