Check-in [30541f9462]
Overview
Comment:Updated to store build log in output directory
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:30541f94628ed73f4511371d409a2cd414de8884
User & Date: rkeene on 2010-02-05 01:44:45
Other Links: manifest | tags
Context
2010-02-05
02:20
Added support for creating teapot descriptor check-in: a478ff4b06 user: rkeene tags: trunk
01:44
Updated to store build log in output directory check-in: 30541f9462 user: rkeene tags: trunk
01:34
Updated clean target to call build clean script Added finding TCLCONFIGDIR support Added build support for TLS on Solaris check-in: 0b028fd897 user: rkeene tags: trunk
Changes

Modified server/work/build_all.sh from [e331d246af] to [4f07bb6e7e].

    30     30   		fi
    31     31   	done
    32     32   )
    33     33   if [ -z "${TCLCONFIGDIR}" ]; then
    34     34   	TCLCONFIGDIR="/usr/lib"
    35     35   fi
    36     36   export TCLCONFIGDIR
           37  +
           38  +# Determine platform
           39  +PLATFORM="$(./platform)"
           40  +export PLATFORM
    37     41   
    38     42   # Build all appropriate directories
    39     43   faileddirs=""
    40     44   for dir in */; do
    41     45   	export dir
    42     46   
    43     47   	if [ ! -f "${dir}/build.sh" ]; then
................................................................................
    44     48   		continue
    45     49   	fi
    46     50   
    47     51   	failed=0
    48     52   	(
    49     53   		cd "${dir}" || exit 1
    50     54   
    51         -		rm -f "build.log"
    52     55   		rm -rf "build" "out"
    53     56   		if [ "${DISTCLEAN}" = "1" ]; then
    54     57   			rm -rf "src"
    55     58   		fi
    56     59   		if [ "${CLEANONLY}" = "1" ]; then
    57     60   			exit 0
    58     61   		fi
    59     62   
    60         -		./build.sh 2>&1 | tee "build.log" || exit 1
           63  +		mkdir -p "out/${PLATFORM}" >/dev/null 2>/dev/null
           64  +
           65  +		./build.sh 2>&1 | tee "out/${PLATFORM}/build.log" || exit 1
    61     66   	) || failed=1
    62     67   
    63     68   	if [ "${failed}" = "1" ]; then
    64     69   		rm -rf "${dir}/out"
    65     70   		faileddirs="${faileddirs} ${dir}"
    66     71   	fi
    67     72   done
................................................................................
    76     81   	echo "The following failed to build:${failddirs}"
    77     82   fi
    78     83   
    79     84   # Create tarfile of built packages
    80     85   PLATFORM="$(./platform)"
    81     86   DATECODE="$(date +%Y%m%d%H%M)"
    82     87   OUTFILEBASE="tclpkgs-${PLATFORM}-${DATECODE}"
    83         -tar -cf - */out */build.log | bzip2 -9c > "${OUTFILEBASE}.tar.bz2"
           88  +tar -cf - */out | bzip2 -9c > "${OUTFILEBASE}.tar.bz2"
    84     89   
    85     90   exit 0

Modified server/work/tls/build.sh from [dc0eed1286] to [94a2a79b39].

    40     40   	fi
    41     41   
    42     42   	./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --with-ssl-dir="${SSLDIR}"
    43     43   	gmake || exit 1
    44     44   ) || exit 1
    45     45   
    46     46   (
    47         -	rm -rf "${PLATDIR}"
    48         -	mkdir -p "${PLATDIR}"
           47  +	mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null
    49     48   
    50     49   	cp "build/${BUILDDIR}/libtls1.6.so" "${PLATDIR}/"
    51     50   	cp "build/${BUILDDIR}/pkgIndex.tcl" "${PLATDIR}/"
    52     51   	cp "build/${BUILDDIR}/tls.tcl" "${PLATDIR}/"
    53     52   ) || exit 1
    54     53   
    55     54   exit 0