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
c63c7b6d
Commit
c63c7b6d
authored
Apr 13, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: improve move_to_opt to move dir not files
parent
84e7b21d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
common.sh
repack.d/common.sh
+3
-2
No files found.
repack.d/common.sh
View file @
c63c7b6d
...
...
@@ -198,7 +198,6 @@ EOF
move_to_opt
()
{
local
sdir rdir i
mkdir
-p
"
$BUILDROOT$PRODUCTDIR
/"
if
[
-z
"
$1
"
]
;
then
local
from
...
...
@@ -223,7 +222,9 @@ move_to_opt()
[
-n
"
$rdir
"
]
||
return
1
#fatal "Can't resolve $from in $BUILDROOT"
[
-d
"
$BUILDROOT$rdir
"
]
||
return
1
#fatal "Can't resolve $from in $BUILDROOT"
mv
"
$BUILDROOT$rdir
"
/
*
"
$BUILDROOT$PRODUCTDIR
/"
[
-d
"
$BUILDROOT$PRODUCTDIR
/"
]
&&
return
1
mkdir
-p
"
$BUILDROOT
$(
dirname
"
$PRODUCTDIR
"
)
/"
mv
"
$BUILDROOT$rdir
"
"
$BUILDROOT$PRODUCTDIR
/"
subst
"s|%dir
$rdir
|%dir
$PRODUCTDIR
|"
$SPEC
subst
"s|%dir
\"
$rdir
|%dir
\"
$PRODUCTDIR
|"
$SPEC
subst
"s|
\(
%config.*
\)
$rdir
|
\1
$PRODUCTDIR
|"
$SPEC
...
...
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