summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Ethier <justin.ethier@gmail.com>2014-03-07 09:43:34 -0500
committerJustin Ethier <justin.ethier@gmail.com>2014-03-07 09:43:34 -0500
commit19fd8bd5408063cad6835184fd9eb8468b0e25d7 (patch)
treec35fa53c393227c062135a4d99ed9263f3bb8fcd
parent769c43159e49a81439ec307114c4b28b2cf1588d (diff)
Check for master branch162-dev
-rwxr-xr-xscripts/build.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/build.scm b/scripts/build.scm
index 8bf44fda..a761fba1 100755
--- a/scripts/build.scm
+++ b/scripts/build.scm
@@ -4,6 +4,13 @@
;
(import (scripts lib version))
+;; Force releases from master branch
+(if (> (system "if [ `git rev-parse --abbrev-ref HEAD` = \"master\" ]; then true; else false; fi") 0)
+ (begin
+ (display "All releases must be from master, exiting...")
+ (newline)
+ (exit-fail)))
+
;; Assumes we are building using the target version of husk
(define *build-number* (get-husk-version))
@@ -29,9 +36,7 @@
"echo \"\""
(string-append "echo \"(1) Build number has been updated in cabal file, we are using " *build-number* " \"")
"echo \"(2) Change log is updated\""
-;; TODO: can these next two be automated?
"echo \"(3) Release notes have been added to gh-pages\""
- "echo \"(4) This is the master branch. All releases must be off of master!!\""
"echo \"\""
"echo \"Press Enter to continue\" ; read temp"