aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-01-31 00:09:54 +0700
committerShulhan <ms@kilabit.info>2024-01-31 00:09:54 +0700
commitf5788bdd8ab4a853f453d06ca1e7deb636877b15 (patch)
treee36aadc4a7e4381ae748ab5a6148cb467f6ddcd2
parent267821d95857ed51e2e5e23556884c383d94ca24 (diff)
downloadgotp-f5788bdd8ab4a853f453d06ca1e7deb636877b15.tar.xz
_sys: fix the bash completion installation directory
In POSIX system, the correct installation for bash completion script should be /usr/share/bash-completion not under /etc directory.
-rw-r--r--Makefile8
-rw-r--r--_sys/usr/share/bash-completion/completions/gotp (renamed from _sys/etc/bash_completion.d/gotp)0
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4af081f..b0ee6f0 100644
--- a/Makefile
+++ b/Makefile
@@ -21,14 +21,18 @@ build:
install: build
install -D _sys/usr/bin/gotp $(DESTDIR)/usr/bin/gotp
- install -Dm644 _sys/etc/bash_completion.d/gotp $(DESTDIR)/etc/bash_completion.d/gotp
+ install -Dm644 \
+ _sys/usr/share/bash-completion/completions/gotp \
+ $(DESTDIR)/usr/share/bash-completion/completions/gotp
install -Dm644 COPYING $(DESTDIR)/usr/share/licenses/gotp/COPYING
.PHONY: install-darwin
install-darwin: DESTDIR=/usr/local
install-darwin: build
install -D _sys/usr/bin/gotp $(DESTDIR)/bin/gotp
- install -Dm644 _sys/etc/bash_completion.d/gotp $(DESTDIR)/etc/bash_completion.d/gotp
+ install -Dm644 \
+ _sys/usr/share/bash-completion/completions/gotp \
+ $(DESTDIR)/etc/bash_completion.d/gotp
install -Dm644 COPYING $(DESTDIR)/share/gotp/COPYING
serve-doc:
diff --git a/_sys/etc/bash_completion.d/gotp b/_sys/usr/share/bash-completion/completions/gotp
index 6262172..6262172 100644
--- a/_sys/etc/bash_completion.d/gotp
+++ b/_sys/usr/share/bash-completion/completions/gotp