Browse Source

Move sfdoc to main package

Alois Mahdal 6 years ago
parent
commit
131512167b

+ 0
- 1
mkit.ini View File

@@ -47,7 +47,6 @@
47 47
     doc      = LICENSE.md
48 48
     doc      = README.md
49 49
     etc_bc   = src/complete.bash       shellfu.bash
50
-    etc_bc   = src/complete-devel.bash shellfu-devel.bash
51 50
     includes = src/include-bash
52 51
     includes = src/include-sh
53 52
     share    = src/shellfu.sh

+ 1
- 2
packaging/debian/control View File

@@ -88,8 +88,7 @@ Description: Essential developer tools
88 88
  languages such as Python or Perl is limited.
89 89
  .
90 90
  This sub-package contains tools useful mostly for development of shellfu
91
- scripts; most notably shellfu-doc which provides access to online
92
- (as in traditional man pages) documentation of shellfu modules.
91
+ scripts.
93 92
 
94 93
 Package: shellfu-sh
95 94
 Architecture: all

+ 0
- 2
packaging/debian/shellfu-devel.install View File

@@ -1,3 +1 @@
1
-/etc/bash_completion.d/shellfu-devel.bash
2
-/usr/bin/sfdoc
3 1
 /usr/bin/sfembed

+ 1
- 0
packaging/debian/shellfu.install View File

@@ -1,4 +1,5 @@
1 1
 /etc/bash_completion.d/shellfu.bash
2
+/usr/bin/sfdoc
2 3
 /usr/bin/sfpath
3 4
 /usr/share/doc/shellfu
4 5
 /usr/share/doc/shellfu/LICENSE.md

+ 2
- 4
packaging/template.spec View File

@@ -50,8 +50,7 @@ Summary: Essential developer tools
50 50
 Requires: shellfu-bash-core
51 51
 %description devel
52 52
 This sub-package contains tools useful mostly for development of shellfu
53
-scripts; most notably sfdoc which provides access to online
54
-(as in traditional man pages) documentation of shellfu modules.
53
+scripts.
55 54
 
56 55
 %package sh
57 56
 Summary: Generic base
@@ -88,6 +87,7 @@ make test \
88 87
 %dir %{_docdir}/%{name}
89 88
 %doc %{_docdir}/%{name}/LICENSE.md
90 89
 %doc %{_docdir}/%{name}/README.md
90
+%{_bindir}/sfdoc
91 91
 %{_bindir}/sfpath
92 92
 %{_datadir}/%{name}/shellfu.sh
93 93
 
@@ -110,8 +110,6 @@ make test \
110 110
 %{_datadir}/%{name}/include-bash/sync.sh
111 111
 
112 112
 %files devel
113
-%config %{_sysconfdir}/bash_completion.d/shellfu-devel.bash
114
-%{_bindir}/sfdoc
115 113
 %{_bindir}/sfembed
116 114
 
117 115
 %files sh

+ 0
- 13
src/complete-devel.bash View File

@@ -1,13 +0,0 @@
1
-
2
-__shellfu_doc() {
3
-    local cur prev opts
4
-    COMPREPLY=()
5
-    cur="${COMP_WORDS[COMP_CWORD]}"
6
-    prev="${COMP_WORDS[COMP_CWORD-1]}"
7
-    args="--help --debug --include --ls --lsmod --lsfun --lsvar --export --name"
8
-    COMPREPLY=(
9
-        $(compgen -W "$args" -- ${cur})
10
-    )
11
-}
12
-
13
-complete -F __shellfu_doc shellfu-doc

+ 10
- 0
src/complete.bash View File

@@ -10,6 +10,16 @@ __sfpath() {
10 10
     )
11 11
 }
12 12
 
13
+__sfdoc() {
14
+    local cur prev opts
15
+    COMPREPLY=()
16
+    cur="${COMP_WORDS[COMP_CWORD]}"
17
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
18
+    args="--help --debug --include --ls --lsmod --lsfun --lsvar --export --name"
19
+    COMPREPLY=(
20
+        $(compgen -W "$args" -- ${cur})
21
+    )
13 22
 }
14 23
 
15 24
 complete -F __sfpath sfpath
25
+complete -F __sfdoc sfdoc