583 |
local stripdir="$@" |
local stripdir="$@" |
584 |
|
|
585 |
[ -z "${stripdir}" ] && stripdir=${BINDIR} |
[ -z "${stripdir}" ] && stripdir=${BINDIR} |
586 |
find ${stripdir} | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |
find ${stripdir} | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip ${STRIP_DYN_LIB} 2> /dev/null |
587 |
} |
} |
588 |
|
|
589 |
mstripbins() |
mstripbins() |
591 |
local stripdir="$@" |
local stripdir="$@" |
592 |
|
|
593 |
[ -z "${stripdir}" ] && stripdir=${BINDIR} |
[ -z "${stripdir}" ] && stripdir=${BINDIR} |
594 |
find ${stripdir} | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |
find ${stripdir} | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip ${STRIP_DYN_BIN} 2> /dev/null |
595 |
|
} |
596 |
|
|
597 |
|
mstripstatic() |
598 |
|
{ |
599 |
|
local stripdir="$@" |
600 |
|
|
601 |
|
[ -z "${stripdir}" ] && stripdir=${BINDIR} |
602 |
|
find ${stripdir} | xargs file | grep "ar archive" | cut -f 1 -d : | xargs strip ${STRIP_STATIC_LIB} 2> /dev/null |
603 |
} |
} |
604 |
|
|
605 |
mcompressdocs() |
mcompressdocs() |
1603 |
do |
do |
1604 |
echo -e "${COLBLUE}===${COLGREEN} stripping binaries for '${subpackage}' ...${COLDEFAULT}" |
echo -e "${COLBLUE}===${COLGREEN} stripping binaries for '${subpackage}' ...${COLDEFAULT}" |
1605 |
mstripbins ${BINDIR}_${subpackage} |
mstripbins ${BINDIR}_${subpackage} |
1606 |
echo -e "${COLBLUE}===${COLGREEN} stripping libraries for '${subpackage}' ...${COLDEFAULT}" |
echo -e "${COLBLUE}===${COLGREEN} stripping dynamic libraries for '${subpackage}' ...${COLDEFAULT}" |
1607 |
mstriplibs ${BINDIR}_${subpackage} |
mstriplibs ${BINDIR}_${subpackage} |
1608 |
|
echo -e "${COLBLUE}===${COLGREEN} stripping static libraries for '${subpackage}' ...${COLDEFAULT}" |
1609 |
|
mstripstatic ${BINDIR}_${subpackage} |
1610 |
done |
done |
1611 |
else |
else |
1612 |
echo -e "${COLBLUE}===${COLGREEN} stripping binaries ...${COLDEFAULT}" |
echo -e "${COLBLUE}===${COLGREEN} stripping binaries ...${COLDEFAULT}" |
1613 |
mstripbins ${BINDIR} |
mstripbins ${BINDIR} |
1614 |
echo -e "${COLBLUE}===${COLGREEN} stripping libraries ...${COLDEFAULT}" |
echo -e "${COLBLUE}===${COLGREEN} stripping dynamic libraries ...${COLDEFAULT}" |
1615 |
mstriplibs ${BINDIR} |
mstriplibs ${BINDIR} |
1616 |
|
echo -e "${COLBLUE}===${COLGREEN} stripping static libraries ...${COLDEFAULT}" |
1617 |
|
mstripstatic ${BINDIR} |
1618 |
fi |
fi |
1619 |
;; |
;; |
1620 |
esac |
esac |