Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
919fc1c4
Commit
919fc1c4
authored
5 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_help: add support for subfile help
parent
aafb696e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
epm-sh-functions
bin/epm-sh-functions
+3
-1
No files found.
bin/epm-sh-functions
View file @
919fc1c4
...
...
@@ -450,8 +450,10 @@ get_help()
if
[
"
$0
"
=
"/dev/stdin"
]
||
[
"
$0
"
=
"sh"
]
;
then
return
fi
local
F
=
"
$0
"
[
-n
"
$2
"
]
&&
F
=
"
$(
dirname
$0
)
/
$2
"
cat
$0
|
grep
--
"#
$1
"
|
while
read
-r
n
;
do
cat
"
$F
"
|
grep
--
"#
$1
"
|
while
read
-r
n
;
do
if
echo
"
$n
"
|
grep
-q
"#
$1
: PART: "
;
then
echo
echo
"
$n
"
|
sed
-e
"s|#
$1
: PART: ||"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment