1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-05 11:37:10 +01:00

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 <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-03-05 15:03:22 +01:00
parent 706d4ac29f
commit 2afd8fc20b

View file

@ -32,27 +32,9 @@ deploy() {
make install 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" mkdir -p "$DEPLOY/lib"
mv ${TCDIR}/${TARGET}/{include,lib} "$DEPLOY" mv ${TCDIR}/${TARGET}/{include,lib} "$DEPLOY"
rm ${DEPLOY}/lib/*.la 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