Check-in [a0f6913a43]
Overview
Comment:Changed the default action to remove all encodings (except 8)

Removed tcltest package from Tclkit

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:a0f6913a439bbf20824ce6cb0c980e4c1e8d74ef
User & Date: rkeene on 2010-09-26 04:41:48
Other Links: manifest | tags
Context
2010-09-26
04:41
Updated to include all encodings by default, but support including only the 8 from original Tclkit check-in: bf4e895d30 user: rkeene tags: trunk
04:41
Changed the default action to remove all encodings (except 8)

Removed tcltest package from Tclkit check-in: a0f6913a43 user: rkeene tags: trunk

04:41
Fixed typo in previous commit check-in: 12229dcfc4 user: rkeene tags: trunk
Changes

Modified README from [92c264cba0] to [0ee71da19f].

    80     80   	6. KITCREATOR_PKGS
    81     81   		Specify which non-required packages to build.  The default list
    82     82   		is:
    83     83   			tk itcl mk4tcl
    84     84   		If mk4tcl is not present a pure-Tcl implementation will be used
    85     85   		instead.
    86     86   
           87  +	7. KITCREATOR_ALLENCODINGS
           88  +		Set this variable to a non-empty string to generate a Tclkit
           89  +		with all encodings rather than the default 8:
           90  +			ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc
           91  +			iso8859-2.enc koi8-r.enc macRoman.enc
    87     92   
    88     93   -------------------
    89     94   Method of Operation
    90     95   -------------------
    91     96   Summary:
    92     97   	1. "kitcreator" calls */build.sh
    93     98   	2. */build.sh downloads and compiles appropriate software

Modified tcl/build.sh from [6599bcea65] to [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