aboutsummaryrefslogtreecommitdiffstats
path: root/community/gitstatus/install
diff options
context:
space:
mode:
Diffstat (limited to 'community/gitstatus/install')
-rw-r--r--community/gitstatus/install20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/gitstatus/install b/community/gitstatus/install
new file mode 100644
index 00000000000..344d4e40f62
--- /dev/null
+++ b/community/gitstatus/install
@@ -0,0 +1,20 @@
+# vim: set ft=sh: ts=4:
+# This is Alpine's replacement for gitstatus' install script that just executes
+# gitstatusd installed in /usr/libexec.
+
+_gitstatus_install_main() {
+ local daemon=${GITSTATUS_DAEMON:-"/usr/libexec/gitstatusd"}
+
+ while [ $# -gt 0 ]; do
+ case "$1" in
+ --) shift; break;;
+ *) shift;;
+ esac
+ done
+
+ if [ $# -ne 0 ]; then
+ "$@" "$daemon" "$("$daemon" --version)" 0
+ fi
+}
+
+_gitstatus_install_main "$@"