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
Nurlan
eepm
Commits
b676039a
Commit
b676039a
authored
Aug 22, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: pass pkgname to generic.sh too and include common.sh in generic.sh
parent
d82b774a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
epm-repack
bin/epm-repack
+3
-3
generic.sh
repack.d/generic.sh
+4
-0
No files found.
bin/epm-repack
View file @
b676039a
...
@@ -176,7 +176,7 @@ __apply_fix_code()
...
@@ -176,7 +176,7 @@ __apply_fix_code()
export
PATH
=
$PROGDIR
:
$PATH
export
PATH
=
$PROGDIR
:
$PATH
local
bashopt
=
''
local
bashopt
=
''
[
-n
"
$verbose
"
]
&&
bashopt
=
'-x'
[
-n
"
$verbose
"
]
&&
bashopt
=
'-x'
docmd bash
$bashopt
$repackcode
"
$1
"
"
$2
"
||
fatal
"There is an error from
$repackcode
script"
docmd bash
$bashopt
$repackcode
"
$1
"
"
$2
"
"
$3
"
||
fatal
"There is an error from
$repackcode
script"
}
}
__create_rpmmacros
()
__create_rpmmacros
()
...
@@ -348,9 +348,9 @@ __epm_repack_to_rpm()
...
@@ -348,9 +348,9 @@ __epm_repack_to_rpm()
[
-n
"
$VERSION
"
]
&&
chmod
$verbose
-R
a+rX
$tmpbuilddir
/
$subdir
/
*
[
-n
"
$VERSION
"
]
&&
chmod
$verbose
-R
a+rX
$tmpbuilddir
/
$subdir
/
*
__fix_spec
$pkgname
$tmpbuilddir
/
$subdir
$spec
__fix_spec
$pkgname
$tmpbuilddir
/
$subdir
$spec
__apply_fix_code
"generic"
$tmpbuilddir
/
$subdir
$spec
__apply_fix_code
"generic"
$tmpbuilddir
/
$subdir
$spec
$pkgname
[
-n
"
$SUBGENERIC
"
]
&&
__apply_fix_code
"generic-
$SUBGENERIC
"
$tmpbuilddir
/
$subdir
$spec
[
-n
"
$SUBGENERIC
"
]
&&
__apply_fix_code
"generic-
$SUBGENERIC
"
$tmpbuilddir
/
$subdir
$spec
__apply_fix_code
$pkgname
$tmpbuilddir
/
$subdir
$spec
__apply_fix_code
$pkgname
$tmpbuilddir
/
$subdir
$spec
$pkgname
# TODO: we need these dirs to be created
# TODO: we need these dirs to be created
to_remove_pkg_dirs
=
"
$to_remove_pkg_dirs
$HOME
/RPM/BUILD
$HOME
/RPM"
to_remove_pkg_dirs
=
"
$to_remove_pkg_dirs
$HOME
/RPM/BUILD
$HOME
/RPM"
showcmd rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
-bb
$spec
showcmd rpmbuild
--buildroot
$tmpbuilddir
/
$subdir
-bb
$spec
...
...
repack.d/generic.sh
View file @
b676039a
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
# It will run with two args: buildroot spec
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
"
$3
"
# firstly, pack /opt/$PRODUCT if used
.
$(
dirname
$0
)
/common.sh
flag_python3
=
''
flag_python3
=
''
...
...
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