aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/s5/files/s5-blank.sh
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/s5/files/s5-blank.sh')
-rw-r--r--textproc/s5/files/s5-blank.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/textproc/s5/files/s5-blank.sh b/textproc/s5/files/s5-blank.sh
new file mode 100644
index 00000000000..553fbe24fee
--- /dev/null
+++ b/textproc/s5/files/s5-blank.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ -z "$1" ]; then
+ echo 'Usage: s5-blank dirname'
+ exit 1
+fi
+if [ -e "$1" ] && ! [ -d "$1/" ]; then
+ echo "Not a directory: $1"
+ exit 1
+fi
+
+[ ! -e "$1" ] && mkdir -p "$1"
+cp -Rpv /usr/local/share/s5/s5-blank/ "$1"/