Skip to content

Commit 19fd8bd

Browse files
committed
Check for master branch
1 parent 769c431 commit 19fd8bd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/build.scm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
;
55
(import (scripts lib version))
66

7+
;; Force releases from master branch
8+
(if (> (system "if [ `git rev-parse --abbrev-ref HEAD` = \"master\" ]; then true; else false; fi") 0)
9+
(begin
10+
(display "All releases must be from master, exiting...")
11+
(newline)
12+
(exit-fail)))
13+
714
;; Assumes we are building using the target version of husk
815
(define *build-number* (get-husk-version))
916

@@ -29,9 +36,7 @@
2936
"echo \"\""
3037
(string-append "echo \"(1) Build number has been updated in cabal file, we are using " *build-number* " \"")
3138
"echo \"(2) Change log is updated\""
32-
;; TODO: can these next two be automated?
3339
"echo \"(3) Release notes have been added to gh-pages\""
34-
"echo \"(4) This is the master branch. All releases must be off of master!!\""
3540
"echo \"\""
3641
"echo \"Press Enter to continue\" ; read temp"
3742

0 commit comments

Comments
 (0)