File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
2
1
# BASH COMPLETION SCRIPT FOR STANDARD_UNIX_NOTES notes(1) notebook(1)
3
2
# Original PASSWORD_STORE version Copyright (C) 2012 - 2014 Jason A. Donenfeld <
[email protected] > and
4
3
# Brian Mattern <
[email protected] >. All Rights Reserved.
5
4
5
+ # Installed into
6
+ # /usr/share/bash-completion/completions/notes
7
+ # /usr/share/bash-completion/completions/notebook
8
+
9
+
6
10
_notes_complete_entries () {
7
11
if [ -n "$XDG_DATA_DIR" -a -z "$NOTESDIR" ] ; then
8
12
# only use $XDG_DATA_DIR if NOTESDIR not set
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ install_files:
32
32
@echo do the install stuff
33
33
sudo install -o root -m 755 notes /usr/local/bin/notes
34
34
sudo ln -sf /usr/local/bin/notes /usr/local/bin/notebook
35
+ sudo install -o root -m 644 bash-completions /usr/share/bash-completion/completions/notes
36
+ sudo install -o root -m 644 bash-completions /usr/share/bash-completion/completions/notebook
35
37
36
38
manpages :
37
39
@echo create the docs files to be installed
@@ -52,6 +54,8 @@ uninstall:
52
54
-sudo rm -f /usr/share/man/man1/notebook.1.gz
53
55
-sudo rm -f /usr/local/bin/notes
54
56
-sudo rm -f /usr/local/bin/notebook
57
+ -sudo rm -f /usr/share/bash-completion/completions/notes
58
+ -sudo rm -f /usr/share/bash-completion/completions/notebook
55
59
56
60
# # make reinstall Reinstall the application
57
61
reinstall : uninstall install
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ MANPATH=usr/share/man/man1
6
6
PKGMANDIR =$(PKGBUILDDIR ) /$(MANPATH )
7
7
PROGROOT =../..
8
8
DEBIAN =$(PKGBUILDDIR ) /DEBIAN
9
+ BASHCOMPLETE ="usr/share/bash-completion/completions"
10
+ PKGBASHCOMPLETE =$(PKGBUILDDIR ) /$(BASHCOMPLETE )
9
11
10
12
# # make help: Show help
11
13
help :
25
27
@echo MANPATH = $(MANPATH )
26
28
@echo PKGMANDIR = $(PKGMANDIR )
27
29
@echo PROGROOT = $(PROGROOT )
30
+ @echo PKGBASHCOMPLETE = $(PKGBASHCOMPLETE )
28
31
29
32
# # make build: Build .DEB package
30
33
deb : clean prep build
@@ -39,9 +42,12 @@ prep: clean
39
42
mkdir -p $(DEBIAN )
40
43
mkdir -p $(PKGBINDIR )
41
44
mkdir -p $(PKGMANDIR )
45
+ mkdir -p $(PKGBASHCOMPLETE )
42
46
sudo install -o root -m 755 $(PROGROOT ) /notes $(PKGBINDIR )
43
47
sudo install -o root -m 644 $(PROGROOT ) /docs/notes.1 $(PKGMANDIR )
44
48
sudo install -o root -m 644 $(PROGROOT ) /docs/notebook.1 $(PKGMANDIR )
49
+ sudo install -o root -m 644 $(PROGROOT ) /bash-completions $(PKGBASHCOMPLETE ) /notes
50
+ sudo install -o root -m 644 $(PROGROOT ) /bash-completions $(PKGBASHCOMPLETE ) /notebook
45
51
install control $(DEBIAN )
46
52
cd $(PKGBINDIR ) ; ln -sf notes notebook
47
53
You can’t perform that action at this time.
0 commit comments