[28444] in Source-Commits

home help back first fref pref prev next nref lref last post

installer commit: Add a Makefile for deploying the installer

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Wed Sep 24 17:46:32 2014

Date: Wed, 24 Sep 2014 17:46:20 -0400
From: Jonathan D Reed <jdreed@mit.edu>
Message-Id: <201409242146.s8OLkKB1031020@drugstore.mit.edu>
To: source-commits@mit.edu

https://github.com/mit-athena/installer/commit/61821d91e457a393ff1491d3544532d367c63988
commit 61821d91e457a393ff1491d3544532d367c63988
Author: Jonathan Reed <jdreed@mit.edu>
Date:   Wed Sep 24 17:45:30 2014 -0400

    Add a Makefile for deploying the installer
    
    Add a Makefile to make it easier to copy the beta installer
    to production and generate the sha256sum

 Makefile |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ac94c10
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+SCRIPT = install-debathena
+
+default:
+	@echo "Targets: production, beta"
+
+confirm:
+	@echo -n "Type 'yes' to move the beta installer to production: "
+	@read confirm && [ "$$confirm" = "yes" ]
+
+beta:
+	@echo "Go run 'git pull' by hand, please."
+
+production: $(SCRIPT).sh $(SCRIPT).sh.sha256sum.txt
+
+$(SCRIPT).sh: $(SCRIPT).beta.sh confirm
+	cp -f $< $@
+
+%.sha256sum.txt: %
+	sha256sum $* | cut -d\  -f 1 > $@
+
+.PHONY: default confirm production beta

home help back first fref pref prev next nref lref last post