1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00

cleanup: remove unneeded parameter from deploy_dev_cleanup

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-03-05 16:09:55 +01:00
parent 705290a2cb
commit b3529c8deb
3 changed files with 6 additions and 7 deletions

2
mk.sh
View file

@ -101,7 +101,7 @@ while read pkg; do
run_pkg_command "build" run_pkg_command "build"
run_pkg_command "deploy" run_pkg_command "deploy"
deploy_dev_cleanup "$PKGDEPLOYDIR" deploy_dev_cleanup
strip_files ${PKGDEPLOYDIR}/{bin,lib} strip_files ${PKGDEPLOYDIR}/{bin,lib}
for f in $SUBPKG; do for f in $SUBPKG; do

View file

@ -34,7 +34,6 @@ deploy() {
mkdir -p "$DEPLOY/lib" mkdir -p "$DEPLOY/lib"
mv ${TCDIR}/${TARGET}/{include,lib} "$DEPLOY" mv ${TCDIR}/${TARGET}/{include,lib} "$DEPLOY"
deploy_dev_cleanup "$DEPLOY"
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$DEPLOY" cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$DEPLOY"
cat >> "$DEPLOY/libstdc++-dev.files" <<_EOF cat >> "$DEPLOY/libstdc++-dev.files" <<_EOF

View file

@ -29,13 +29,13 @@ strip_files() {
deploy_dev_cleanup() { deploy_dev_cleanup() {
local f local f
if [ -d "$1/share/pkgconfig" ]; then if [ -d "$PKGDEPLOYDIR/share/pkgconfig" ]; then
mkdir -p "$1/lib/pkgconfig" mkdir -p "$PKGDEPLOYDIR/lib/pkgconfig"
mv $1/share/pkgconfig/* "$1/lib/pkgconfig" mv $PKGDEPLOYDIR/share/pkgconfig/* "$PKGDEPLOYDIR/lib/pkgconfig"
rmdir "$1/share/pkgconfig" rmdir "$PKGDEPLOYDIR/share/pkgconfig"
fi fi
for f in ${1}/lib/*.la; do for f in $PKGDEPLOYDIR/lib/*.la; do
[ ! -e "$f" ] || rm "$f" [ ! -e "$f" ] || rm "$f"
done done
} }