ref: 6d09377e5186878ab25d9fcae4bac0b90bcc4b58
parent: e1af5fb55cc3f4cdf36112df3bd3840447b930d9
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Mar 3 15:52:00 EST 2017
Add a release generation rule to the makefile.
--- a/Makefile
+++ b/Makefile
@@ -37,3 +37,6 @@
uninstallmyr:
./mbldwrap.sh uninstall
+
+release:
+ ./support/release.sh 0.1
--- /dev/null
+++ b/support/release.sh
@@ -1,0 +1,26 @@
+#!/bin/sh
+set -e
+set -x
+
+tmp=/tmp/myr-release
+rm -rf $tmp
+mkdir -p $tmp
+cp -r ../mc $tmp/
+(
+ cd $tmp/mc
+ git clean -xfd
+ rm -rf .git
+)
+
+(
+ cd $tmp
+ tar cvf myrddin-$1.tar mc
+ bzip2 myrddin-$1.tar
+ tar cvf myrddin-$1.tar mc
+ gzip myrddin-$1.tar
+ tar cvf myrddin-$1.tar mc
+ xz myrddin-$1.tar
+)
+
+cp $tmp/myrddin-$1.tar.* .
+