aboutsummaryrefslogtreecommitdiff
path: root/.local/templates
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-03-02 13:42:52 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-08-14 11:59:32 +0200
commit72af6d06ac340f029d521cdaac4cb63f2c4b3d06 (patch)
treed34a70d7786585cba2d21321ea2ed17a9822c7be /.local/templates
parent4b769e3a6addf7e2dfaf0f2480a78ebec5746f26 (diff)
Add template file for wrapper scripts
Diffstat (limited to '.local/templates')
-rw-r--r--.local/templates/wrapper.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/.local/templates/wrapper.sh b/.local/templates/wrapper.sh
new file mode 100644
index 0000000..be26a71
--- /dev/null
+++ b/.local/templates/wrapper.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
+# details.
+
+readonly BINS="
+"
+
+main()
+{
+ for bin in $BINS
+ do
+ [ -x "$bin" ] || continue
+
+ # TODO: exec "$bin" "$@"
+ done
+
+ printf "No underlying executable found for %s:\n" "${0##*/}" >&2
+
+ for bin in $BINS
+ do
+ printf "\t%s\n" "$bin" >&2
+ done
+}
+
+main "$@"