aboutsummaryrefslogtreecommitdiff
path: root/mktarball.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-04-03 03:49:53 -0400
committerB. Watson <yalhcru@gmail.com>2017-04-03 03:49:53 -0400
commitabc5771ac4c9433c158fcff2ca874a3a44f51190 (patch)
tree332b21c12ae9111cb594e3396e4fdcc2cc5b26fe /mktarball.sh
parent137d078cd02b246b60175717d42efffb876fbc86 (diff)
downloadttf-console-fonts-abc5771ac4c9433c158fcff2ca874a3a44f51190.tar.gz
"release" tarball systemHEADmaster
Diffstat (limited to 'mktarball.sh')
-rw-r--r--mktarball.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/mktarball.sh b/mktarball.sh
new file mode 100644
index 0000000..1c00de9
--- /dev/null
+++ b/mktarball.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+ #( cd .. ; tar cvfz $(PROJECT)-$(shell git log --date='format:%Y%M%d' --pretty=format:%ad_%h @^ ).tar.gz $(PROJECT) ;
+
+TMP=${TMP:-/tmp}
+PROJECT="$1"
+VERSION="$( git log --date='format:%Y%m%d' --pretty=format:%ad_%h @^ )"
+
+rm -rf $TMP/$PROJECT-$VERSION
+mkdir -p $TMP/$PROJECT-$VERSION
+cp -a * $TMP/$PROJECT-$VERSION
+cd $TMP
+tar cvfz $PROJECT-$VERSION.tar.gz $PROJECT-$VERSION
+naptime $PROJECT-$VERSION.tar.gz
+md5sum $PROJECT-$VERSION.tar.gz