summaryrefslogtreecommitdiff
path: root/MKV
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-03-25 17:36:52 -0400
committerFreya Murphy <freya@freyacat.org>2025-03-25 17:38:22 -0400
commit6af21e6a4f2251e71353562d5df7f376fdffc270 (patch)
treede20c7afc9878422c81e34f30c6b010075e9e69a /MKV
downloadcomus-6af21e6a4f2251e71353562d5df7f376fdffc270.tar.gz
comus-6af21e6a4f2251e71353562d5df7f376fdffc270.tar.bz2
comus-6af21e6a4f2251e71353562d5df7f376fdffc270.zip
initial checkout from wrc
Diffstat (limited to 'MKV')
-rwxr-xr-xMKV36
1 files changed, 36 insertions, 0 deletions
diff --git a/MKV b/MKV
new file mode 100755
index 0000000..347f885
--- /dev/null
+++ b/MKV
@@ -0,0 +1,36 @@
+#!/bin/bash
+#
+# Run 'make', saving all output into a file named LOG
+#
+# usage:
+# MK [args] - prints timestamps and status
+# MKV [args] - echoes and saves 'make' output
+#
+
+# remember this so we know what to do
+name="`basename $0`"
+
+# starting timestamp
+time1="`date`"
+
+if [ "$name" = "MK" ]
+then
+ # run make, save output, check status
+ echo -n + make $* '> LOG 2>&1 ... '
+ if make $* > LOG 2>&1
+ then
+ echo done
+ else
+ echo check LOG for build errors
+ fi
+else
+ # just do the make and save a copy of the output
+ echo + make $* '2>&1 | tee LOG'
+ make $* 2>&1 | tee LOG
+fi
+
+# ending timestamp
+time2="`date`"
+
+echo Start: $time1
+echo "End: " $time2