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
0
Merge Requests
0
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
cfbd0941
Commit
cfbd0941
authored
9 months ago
by
Boris Yumankulov
Committed by
Vitaly Lipatov
8 months ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack: add list argument (eterbug #17417)
parent
890268b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
5 deletions
+32
-5
epm-pack
bin/epm-pack
+32
-5
No files found.
bin/epm-pack
View file @
cfbd0941
...
...
@@ -116,6 +116,26 @@ __epm_pack()
return
0
}
__list_all_app
()
{
cd
$EPM_PACK_SCRIPTS_DIR
||
fatal
for
i
in
*
.sh
;
do
local
name
=
${
i
/.sh/
}
startwith
"
$name
"
"common"
&&
continue
echo
"
$name
"
done
cd
-
>
/dev/null
}
__epm_pack_list
()
{
for
i
in
$(
__list_all_app
)
;
do
echo
"
$i
"
done
exit
}
epm_pack_help
()
{
message
'
...
...
@@ -130,6 +150,7 @@ Options:
--repack - force repack ever if returned package can be installed without repack
--download-only - save pack result and exit
--save-only - save repacked packages and exit (this is default behaviour)
--list - list all available receipts
'
}
...
...
@@ -137,10 +158,16 @@ Options:
epm_pack
()
{
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
epm_pack_help
exit
fi
case
"
$1
"
in
-h
|
--help
)
# HELPCMD: help
epm_epm_install_help
return
;;
--list
)
# HELPCMD: list all available receipts
__list_all_app
return
;;
esac
local
tmpdir
tmpdir
=
"
$(
mktemp
-d
--tmpdir
=
$BIGTMPDIR
)
"
||
fatal
...
...
@@ -151,7 +178,7 @@ epm_pack()
local
packversion
=
"
$3
"
local
url
=
''
[
-n
"
$packname
"
]
||
fatal
"run with packname, see --help"
[
-n
"
$packname
"
]
||
__epm_pack_list
if
is_url
"
$tarname
"
;
then
url
=
"
$tarname
"
...
...
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