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
3670b31e
Commit
3670b31e
authored
Nov 04, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Nov 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack common: add wildcard support to remove_file (eterbug #17812)
parent
5dbadcbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
+18
-13
common.sh
repack.d/common.sh
+17
-10
wps-office.sh
repack.d/wps-office.sh
+1
-3
No files found.
repack.d/common.sh
View file @
3670b31e
...
...
@@ -45,21 +45,28 @@ is_abs_path()
echo
"
$1
"
|
grep
-q
"^/"
}
# Remove file from the file system and from spec
# Usage: remove_file <path_to_file>
# Remove file
(s)
from the file system and from spec
# Usage: remove_file <path_to_file
_or_pattern
>
remove_file
()
{
local
file
=
"
$1
"
[
-n
"
$file
"
]
||
return
[
-e
"
$BUILDROOT$file
"
]
||
[
-L
"
$BUILDROOT$file
"
]
||
return
local
file_pattern
=
"
$1
"
[
-n
"
$file_pattern
"
]
||
return
rm
-v
"
$BUILDROOT$file
"
subst
"s|^
$file$|
|"
$SPEC
subst
"s|^
\"
$file
\"
$|
|"
$SPEC
subst
"s|^
\(
%config.*
\)
$file$|
|"
$SPEC
subst
"s|^
\(
%config.*
\)
\"
$file
\"
$|
|"
$SPEC
for
file
in
$(
eval echo
"
$BUILDROOT$file_pattern
"
)
;
do
[
-e
"
$file
"
]
||
[
-L
"
$file
"
]
||
continue
rm
-v
"
$file
"
local
relative_file
=
"
${
file
#
"
$BUILDROOT
"
}
"
subst
"s|^
$relative_file$|
|"
$SPEC
subst
"s|^
\"
$relative_file
\"
$|
|"
$SPEC
subst
"s|^
\(
%config.*
\)
$relative_file$|
|"
$SPEC
subst
"s|^
\(
%config.*
\)
\"
$relative_file
\"
$|
|"
$SPEC
done
}
is_dir_empty
()
{
[
-z
"
$(
ls
-A
"
$1
"
)
"
]
...
...
repack.d/wps-office.sh
View file @
3670b31e
...
...
@@ -24,9 +24,7 @@ remove_file $PRODUCTDIR/office6/wpscloudsvr
remove_file
$PRODUCTDIR
/office6/addons/pdfbatchcompression/libpdfbatchcompressionapp.so
# Fix for icu>=71.1
# TODO: add wildcard support to remove_file
remove_file
$PRODUCTDIR
/office6/libstdc++.so.6
remove_file
$PRODUCTDIR
/office6/libstdc++.so.6.0.28
remove_file
$PRODUCTDIR
/office6/libstdc++.so.6
*
# hack to fix bug somewhere in linking
ignore_lib_requires
"libc++.so"
...
...
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