Squashed 'third_party/apriltag/' content from commit 3e8e974d0
git-subtree-dir: third_party/apriltag
git-subtree-split: 3e8e974d0d8d6ab318abf56d87506d15d7f2cc35
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
Change-Id: I04ba3cb2106b6813a1013d57aa8074c26f856598
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..04bb5b2
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+# Usage: install.sh TARGET [RELATIVE PATHS ...]
+#
+# e.g. ./install.sh /usr/local foo/file1 foo/file2 ...
+# This creates the files /usr/local/foo/file1 and /usr/local/foo/file2
+
+TARGETDIR=$1
+shift
+
+for src in "$@"; do
+ dest=$TARGETDIR/$src
+ mkdir -p $(dirname $dest)
+ cp $src $dest
+ echo $dest
+done