Diff

Differences From Artifact [839f9aa1bd]:

To Artifact [d97895eb69]:


    26     26   rm -rf tcl/build tcl/inst
    27     27   rm -f platform.magic.*
    28     28   if [ "${DISTCLEAN}" = "1" ]; then
    29     29   	rm -rf tcl
    30     30   fi
    31     31   
    32     32   if [ "${CLEANONLY}" = "0" ]; then
    33         -	TCLVERS="8.4.19"
           33  +	TCLVERS="8.5.9"
    34     34   	TCLPRIVATE="$(pwd)/tcl/build/tcl${TCLVERS}"
    35     35   	PROJROOTDIR="$(pwd)"
    36     36   	TCLINSTDIR="$(pwd)/tcl/inst"
    37     37   	export TCLVERS TCLPRIVATE PROJROOTDIR TCLINSTDIR
    38     38   
    39     39   	mkdir tcl tcl/build >/dev/null 2>/dev/null
    40     40   
................................................................................
   132    132   	export PLATFORM
   133    133   else
   134    134   	PLATFORM="${FORCE_PLATFORM}"
   135    135   fi
   136    136   
   137    137   # Build all appropriate directories
   138    138   faileddirs=""
   139         -for dir in */; do
          139  +if [ -z "${DIRS}" ]; then
          140  +	DIRS="`echo */`"
          141  +	PKGHASHCODE=''
          142  +else
          143  +	PKGHASHCODE="$(echo "${DIRS}" | sed 's@[/ ]@@g' | openssl sha1 | awk '{ print $1 }')"
          144  +fi
          145  +for dir in ${DIRS}; do
   140    146   	export dir
   141    147   
   142    148   	if [ ! -f "${dir}/build.sh" ]; then
   143    149   		continue
   144    150   	fi
   145    151   
   146    152   	if [ "${CLEANONLY}" = "0" ]; then
................................................................................
   182    188   # Let the user know what failed to build
   183    189   if [ -n "${faileddirs}" ]; then
   184    190   	echo "The following failed to build:${faileddirs}"
   185    191   fi
   186    192   
   187    193   # Create tarfile of built packages
   188    194   DATECODE="$(date +%Y%m%d%H%M)"
   189         -OUTFILEBASE="tclpkgs-${PLATFORM}-${DATECODE}"
          195  +
          196  +if [ -z "${PKGHASHCODE}" ]; then
          197  +	OUTFILEBASE="tclpkgs-${PLATFORM}-${DATECODE}"
          198  +else
          199  +	OUTFILEBASE="tclpkgs-${PKGHASHCODE}-${PLATFORM}-${DATECODE}"
          200  +fi
   190    201   tar -cf - */out | bzip2 -9c > "${OUTFILEBASE}.tar.bz2"
   191    202   
   192    203   exit 0