From 2afd8fc20b9d522beb60d7fd18edc1995ae980d4 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 5 Mar 2019 15:03:22 +0100 Subject: [PATCH] cleanup: remove manual output directory clensing from tc-gcc2 We explicitly list every file that should be packaged, no need to manually go over the ones we don't want. Signed-off-by: David Oberhollenzer --- pkg/tc-gcc2/build | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/pkg/tc-gcc2/build b/pkg/tc-gcc2/build index 7b6e23a..36c83db 100755 --- a/pkg/tc-gcc2/build +++ b/pkg/tc-gcc2/build @@ -32,27 +32,9 @@ deploy() { make install - local f dep - - for f in $(ls ${TCDIR}/${TARGET}/include); do - for dep in $DEPENDS; do - if [ -e ${PKGDEPLOYDIR}/${dep}/include/$f ]; then - rm -rf "$TCDIR/$TARGET/include/$f" - fi - done - done - - for f in $(ls ${TCDIR}/${TARGET}/lib); do - for dep in $DEPENDS; do - if [ -e ${PKGDEPLOYDIR}/${dep}/lib/$f ]; then - rm -rf "$TCDIR/$TARGET/lib/$f" - fi - done - done - mkdir -p "$DEPLOY/lib" mv ${TCDIR}/${TARGET}/{include,lib} "$DEPLOY" - rm ${DEPLOY}/lib/*.la + deploy_dev_cleanup "$DEPLOY" cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$DEPLOY" cat >> "$DEPLOY/libstdc++-dev.files" <<_EOF