Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
abuild
Commits
6bbb1b6b
Commit
6bbb1b6b
authored
Nov 25, 2008
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strip binaries before creating package
parent
b9ce3c17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
abuild
abuild
+17
-0
No files found.
abuild
View file @
6bbb1b6b
...
...
@@ -302,6 +302,7 @@ EOF
}
package
()
{
stripbin
package_apk
}
...
...
@@ -443,6 +444,22 @@ checksum() {
echo
"md5sums=
\"
$md5sums
\"
"
}
stripbin
()
{
local
bin
dirs
=
${
STRIP_DIRS
:-
bin
lib sbin usr/bin usr/lib usr/sbin
}
cd
"
${
subpkgdir
:-
$pkgdir
}
"
||
return
1
msg
"Stripping binaries"
find
$dirs
-type
f 2>/dev/null |
while
read
bin
;
do
local
opt
=
case
"
$(
file
-biz
"
$bin
"
)
"
in
*
/x-sharedlib
*
|
*
/x-archive
*
)
strip
--strip-debug
"
$bin
"
;;
*
/x-executable
*
)
strip
"
$bin
"
;;
esac
done
return
0
}
usage
()
{
echo
"
$(
basename
$0
)
$abuild_ver
"
echo
"usage:
$0
[options] [cmd] ..."
...
...
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