aboutsummaryrefslogtreecommitdiffstats
path: root/setup.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup.sh.in')
-rw-r--r--setup.sh.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/setup.sh.in b/setup.sh.in
new file mode 100644
index 0000000..a37a691
--- /dev/null
+++ b/setup.sh.in
@@ -0,0 +1,25 @@
+#! /bin/sh
+# This source code is released into the public domain.
+
+# Parse command-line arguments.
+args=$(getopt y $*)
+if [ $? -ne 0 ]; then
+ exit 1
+fi
+set -- $args
+
+_uacme_flags=""
+
+while :; do
+ case "$1" in
+ -y)
+ _uacme_flags="$_uacme_flags $1"
+ shift;;
+ --)
+ shift; break;;
+ esac
+done
+
+# Run uacme.
+mkdir -p "$_UACME_DIR"
+_uacme $_uacme_flags new