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
8f335046
Commit
8f335046
authored
Apr 19, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack: add support for version as third arg
parent
78d90e4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
epm-pack
bin/epm-pack
+6
-3
No files found.
bin/epm-pack
View file @
8f335046
...
...
@@ -28,6 +28,7 @@ __epm_pack()
{
local
packname
=
"
$1
"
local
tarname
=
"
$2
"
local
packversion
=
"
$3
"
returntarname
=
''
local
repackcode
=
"
$EPM_PACK_SCRIPTS_DIR
/
$packname
.sh"
...
...
@@ -47,7 +48,7 @@ __epm_pack()
local
bashopt
=
''
[
-n
"
$verbose
"
]
&&
bashopt
=
'-x'
#info "Running $($script --description 2>/dev/null) ..."
(
unset
EPMCURDIR
;
docmd
$CMDSHELL
$bashopt
$repackcode
"
$tarname
"
"
$filefortarname
"
)
||
fatal
(
unset
EPMCURDIR
;
docmd
$CMDSHELL
$bashopt
$repackcode
"
$tarname
"
"
$filefortarname
"
"
$packversion
"
)
||
fatal
returntarname
=
"
$(
cat
"
$filefortarname
"
)
"
||
fatal
"pack script
$repackcode
didn't set tarname"
rm
-rf
$tmpdir
...
...
@@ -100,11 +101,12 @@ epm_pack_help()
{
cat
<<
EOF
epm pack - create rpm package from files
Usage: epm pack [options] <packname> <tar|url|dir>
Usage: epm pack [options] <packname> <tar|url|dir>
[version]
Options:
<packname> - receipt
<dir> - create tarball from the dir before
<url> - download tar from url
[version] - force version for unversioned sources
--install - install after pack result
--repack - force repack ever if returned package can be installed without repack
--download-only - save pack result and exit
...
...
@@ -126,6 +128,7 @@ epm_pack()
local
packname
=
"
$1
"
local
tarname
=
"
$2
"
local
packversion
=
"
$3
"
[
-n
"
$packname
"
]
||
fatal
"run with packname, see --help"
...
...
@@ -146,6 +149,6 @@ epm_pack()
true
fi
__epm_pack
"
$packname
"
"
$tarname
"
__epm_pack
"
$packname
"
"
$tarname
"
"
$packversion
"
}
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