Diff

Differences From Artifact [6599bcea65]:

To Artifact [f2cbd6ff95]:


    81     81   		)
    82     82   
    83     83   		mkdir "${OUTDIR}/lib" || exit 1
    84     84   		cp -r "${INSTDIR}/lib"/* "${OUTDIR}/lib/"
    85     85   		rm -rf "${OUTDIR}/lib/pkgconfig"
    86     86   		rm -f "${OUTDIR}"/lib/* >/dev/null 2>/dev/null
    87     87   		find "${OUTDIR}" -name '*.a' | xargs rm -f >/dev/null 2>/dev/null
           88  +
           89  +		# Clean up packages that are not needed
           90  +		find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf
           91  +
           92  +		# Clean up encodings
           93  +		if [ -z "${KITCREATOR_ALLENCODINGS}" ]; then
           94  +			KEEPENCODINGS=" ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc iso8859-2.enc koi8-r.enc macRoman.enc "
           95  +			export KEEPENCODINGS
           96  +			find "${OUTDIR}/lib" -name 'encoding' -type d | while read encdir; do
           97  +				(
           98  +					cd "${encdir}" || exit 1
           99  +
          100  +					for file in *; do
          101  +						if echo " ${KEEPENCODINGS} " | grep " ${file} " >/dev/null; then
          102  +							continue
          103  +						fi
          104  +
          105  +						rm -f "${file}"
          106  +					done
          107  +				)
          108  +			done
          109  +		fi
    88    110   
    89    111   		break
    90    112   	done
    91    113   ) || exit 1
    92    114   
    93    115   exit 0