summaryrefslogtreecommitdiffhomepage
path: root/make-tar.sh
diff options
context:
space:
mode:
authorDonovan Baarda <abo@minkirri.apana.org.au>2014-10-15 14:07:20 +1100
committerDonovan Baarda <abo@minkirri.apana.org.au>2014-10-15 14:07:20 +1100
commitdbd04e283082ab869a22abf03c4c6280b03935bb (patch)
tree3951c6f91f76047e655f35e04db4eecd576c49df /make-tar.sh
parentd880464fbe9180aefde94594330126e115066dc3 (diff)
parent051a2e4392bc75b246cc5cb897ae0bbb1f92042e (diff)
Merge branch 'unstable' of https://github.com/opentrack/opentrack into dev/kalman
Conflicts: ftnoir_filter_kalman/ftnoir_filter_kalman.h
Diffstat (limited to 'make-tar.sh')
-rw-r--r--make-tar.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/make-tar.sh b/make-tar.sh
new file mode 100644
index 00000000..26b65dcb
--- /dev/null
+++ b/make-tar.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+prefix="$1"
+filename="$2"
+
+if : &&
+ make install &&
+ cd $(dirname -- "${prefix}") &&
+ tar Jcf "${filename}" $(basename "${prefix}")
+then
+ ls -lh -- "${filename}"
+else
+ rm -fv -- "${filename}"
+ exit 1
+fi
+
+exit 0