add system build to autoconf/automake
[goodguy/history.git] / cinelerra-5.1 / inst.sh
diff --git a/cinelerra-5.1/inst.sh b/cinelerra-5.1/inst.sh
new file mode 100755 (executable)
index 0000000..6c2b1c8
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash -e
+# inst.sh <dir> <objs...>
+
+dir="$1"; shift 1
+$mkinstalldirs "$dir"
+
+for f in "$@"; do
+  if [ -f "$f" ]; then $install_sh -c "$f" "$dir"; continue; fi
+  if [ -d "$f" ]; then ( cd $f; $inst_sh "$dir/$f" * )
+  else echo "*** Error - install $f in $dir failed." 1>&2; exit 1; fi
+done
+