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
0f09811d
Commit
0f09811d
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack common.sh: set PRODUCT by default (from the script name)
parent
e2cedcb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
common.sh
repack.d/common.sh
+6
-5
No files found.
repack.d/common.sh
View file @
0f09811d
...
...
@@ -302,12 +302,13 @@ use_system_xdg()
#[ -d "$BUILDROOT" ] || fatal "Run me only via epm repack <package>"
if
[
-n
"
$PRODUCT
"
]
;
then
[
-n
"
$PRODUCTCUR
"
]
||
PRODUCTCUR
=
"
$PRODUCT
"
[
-n
"
$PRODUCTDIR
"
]
||
PRODUCTDIR
=
"/opt/
$PRODUCTCUR
"
[
-n
"
$PRODUCT
"
]
||
PRODUCT
=
"
$(
basename
$0
.sh
)
"
[
-n
"
$PRODUCTCUR
"
]
||
PRODUCTCUR
=
"
$PRODUCT
"
[
-n
"
$PRODUCTDIR
"
]
||
PRODUCTDIR
=
"/opt/
$PRODUCTCUR
"
[
-d
"
$BUILDROOT$PRODUCTDIR
"
]
&&
pack_dir
"
$PRODUCTDIR
"
[
-d
"
$BUILDROOT$PRODUCTDIR
"
]
&&
pack_dir
"
$PRODUCTDIR
"
fi
# like /opt/yandex/browser
if
[
-n
"
$PRODUCTDIR
"
]
&&
[
"
$(
dirname
"
$PRODUCTDIR
"
)
"
!=
"/"
]
&&
[
"
$(
dirname
"
$(
dirname
"
$PRODUCTDIR
"
)
"
)
"
!=
"/"
]
;
then
...
...
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