mirror of
https://github.com/superconvert/smart-os.git
synced 2024-11-25 19:51:32 +08:00
Delete mk_strip.sh
This commit is contained in:
parent
dd0c6c86c4
commit
ccb6d98569
41
mk_strip.sh
41
mk_strip.sh
@ -1,41 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
strip_dir() {
|
||||
for file in `ls $1`
|
||||
do
|
||||
if [ -d $1"/"$file ]; then
|
||||
strip_dir $1"/"$file
|
||||
else
|
||||
if [ -x $1"/"$file ]; then
|
||||
case "$file" in
|
||||
*.a);;
|
||||
*.la);;
|
||||
*)strip $1"/"$file; continue;;
|
||||
esac
|
||||
fi
|
||||
case "$file" in
|
||||
*.a) strip -g -S -d $1"/"$file;;
|
||||
*.so) strip $1"/"$file;;
|
||||
*.so.*) strip $1"/"$file;;
|
||||
*);;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# strip glibc
|
||||
rm -rf work/glibc_install/share
|
||||
strip_dir work/glibc_install
|
||||
|
||||
# strip busybox
|
||||
strip work/busybox_install/bin/busybox
|
||||
|
||||
# strip gcc
|
||||
rm -rf work/libgcc_install/share
|
||||
strip_dir work/libgcc_install
|
||||
|
||||
# strip binutils
|
||||
rm -rf work/binutils_install/share
|
||||
rm -rf work/binutils_install/x86_64-pc-linux-gnu
|
||||
strip_dir work/binutils_install
|
||||
|
Loading…
Reference in New Issue
Block a user