summaryrefslogtreecommitdiff
path: root/util/sbase/scripts/install
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/scripts/install')
-rwxr-xr-xutil/sbase/scripts/install21
1 files changed, 21 insertions, 0 deletions
diff --git a/util/sbase/scripts/install b/util/sbase/scripts/install
new file mode 100755
index 00000000..ce78c1da
--- /dev/null
+++ b/util/sbase/scripts/install
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+while read type src dst perm
+do
+ case $type in
+ d)
+ mkdir -p $src
+ ;;
+ c)
+ cp -f $src $dst
+ ;;
+ *)
+ echo install: wrong entry type >&2
+ exit 1
+ ;;
+ esac
+
+ chmod $perm $dst
+done < $1