Parcourir la source

Move sfdoc to main package

Alois Mahdal il y a 6 ans
Parent
révision
131512167b

+ 0
- 1
mkit.ini Voir le fichier

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

+ 1
- 2
packaging/debian/control Voir le fichier

88
  languages such as Python or Perl is limited.
88
  languages such as Python or Perl is limited.
89
  .
89
  .
90
  This sub-package contains tools useful mostly for development of shellfu
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
 Package: shellfu-sh
93
 Package: shellfu-sh
95
 Architecture: all
94
 Architecture: all

+ 0
- 2
packaging/debian/shellfu-devel.install Voir le fichier

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

+ 1
- 0
packaging/debian/shellfu.install Voir le fichier

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

+ 2
- 4
packaging/template.spec Voir le fichier

50
 Requires: shellfu-bash-core
50
 Requires: shellfu-bash-core
51
 %description devel
51
 %description devel
52
 This sub-package contains tools useful mostly for development of shellfu
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
 %package sh
55
 %package sh
57
 Summary: Generic base
56
 Summary: Generic base
88
 %dir %{_docdir}/%{name}
87
 %dir %{_docdir}/%{name}
89
 %doc %{_docdir}/%{name}/LICENSE.md
88
 %doc %{_docdir}/%{name}/LICENSE.md
90
 %doc %{_docdir}/%{name}/README.md
89
 %doc %{_docdir}/%{name}/README.md
90
+%{_bindir}/sfdoc
91
 %{_bindir}/sfpath
91
 %{_bindir}/sfpath
92
 %{_datadir}/%{name}/shellfu.sh
92
 %{_datadir}/%{name}/shellfu.sh
93
 
93
 
110
 %{_datadir}/%{name}/include-bash/sync.sh
110
 %{_datadir}/%{name}/include-bash/sync.sh
111
 
111
 
112
 %files devel
112
 %files devel
113
-%config %{_sysconfdir}/bash_completion.d/shellfu-devel.bash
114
-%{_bindir}/sfdoc
115
 %{_bindir}/sfembed
113
 %{_bindir}/sfembed
116
 
114
 
117
 %files sh
115
 %files sh

+ 0
- 13
src/complete-devel.bash Voir le fichier

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 Voir le fichier

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
 complete -F __sfpath sfpath
24
 complete -F __sfpath sfpath
25
+complete -F __sfdoc sfdoc