chiark / gitweb /
@@ -1,3 +1,9 @@
[userv-utils.git] / finger / install-confs
diff --git a/finger/install-confs b/finger/install-confs
new file mode 100755 (executable)
index 0000000..68044a9
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+destdir="$1"; shift
+for f in "$@"; do install -m 644 -o root "$f" "$destdir/$f:new"; done
+cd "$destdir"
+for f in "$@"; do
+       if ! test -f "$f"; then
+               echo installing new "$destdir/$f"
+               mv -f "$f:new" "$f"
+       fi
+done