Helper scripts for one makefile build.
authorBen Laurie <ben@links.org>
Sat, 6 Apr 2013 14:17:30 +0000 (15:17 +0100)
committerBen Laurie <ben@links.org>
Sat, 6 Apr 2013 14:17:30 +0000 (15:17 +0100)
GitConfigure [new file with mode: 0755]
GitMake [new file with mode: 0644]

diff --git a/GitConfigure b/GitConfigure
new file mode 100755 (executable)
index 0000000..bbab33e
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+BRANCH=`git rev-parse --abbrev-ref HEAD`
+
+./Configure $@ no-symlinks
+make files
+util/mk1mf.pl OUT=out.$BRANCH TMP=tmp.$BRANCH INC=inc.$BRANCH copy > makefile.$BRANCH
+make -f makefile.$BRANCH init
diff --git a/GitMake b/GitMake
new file mode 100644 (file)
index 0000000..47beffd
--- /dev/null
+++ b/GitMake
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BRANCH=`git rev-parse --abbrev-ref HEAD`
+
+make -f makefile.$BRANCH $@