crunch() { LIBDIR=$1 LIBPREFIX=$2 for f in $LIBDIR/$LIBPREFIX*.so.6.0 do bname=`basename $f` # echo " - compacting $bname." cp $f $LIBDIR/t$bname || exit 1 rm -f $f mv $LIBDIR/t$bname $f done } #echo "Compacting shared libraries to decrease disk space utilization..." crunch usr/i486-linuxaout/lib libX; #echo "Shared libraries compacted." ( cd usr/i486-linuxaout/lib ; rm -rf libXpm.so.4 ) ( cd usr/i486-linuxaout/lib ; ln -sf libXpm.so.4.3 libXpm.so.4 ) ( cd usr/i486-linuxaout/lib ; rm -rf libXt.so.6 ) ( cd usr/i486-linuxaout/lib ; ln -sf libXt.so.6.0 libXt.so.6 ) ( cd usr/i486-linuxaout/lib ; rm -rf libXaw.so.6 ) ( cd usr/i486-linuxaout/lib ; ln -sf libXaw.so.6.0 libXaw.so.6 ) ( cd usr/i486-linuxaout/lib ; rm -rf libXIE.so.6 ) ( cd usr/i486-linuxaout/lib ; ln -sf libXIE.so.6.0 libXIE.so.6 ) ( cd usr/i486-linuxaout/lib ; rm -rf libX11.so.6 ) ( cd usr/i486-linuxaout/lib ; ln -sf libX11.so.6.0 libX11.so.6 )