Changeset 81829
- Timestamp:
- 08/05/11 10:15:13 (4 years ago)
- File:
-
- 1 edited
-
contrib/mpab/gather_archives.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contrib/mpab/gather_archives.sh
r81645 r81829 1 1 #!/bin/sh 2 3 CHROOTSUBDIR=mpchroot 4 dataDir=$(pwd) 5 if [[ -n "$MPAB_DATA" ]]; then 6 dataDir=$MPAB_DATA 7 fi 8 chrootPath="${dataDir}/${CHROOTSUBDIR}" 9 OSMajor=`uname -r | sed 's/\..*//'` 10 # xcodebuild breaks in chroots on 10.6 11 if [[ $1 = "-n" || $OSMajor -ge 10 ]]; then 12 chrootPath="" 13 if [[ $1 = "-n" ]]; then 14 shift 15 fi 16 fi 2 17 3 18 if [[ -z "$PORTLISTFILE" ]]; then … … 21 36 fi 22 37 38 # if mpab was killed due to a timeout, logs will still be in the tmp dir 39 if ! ls logs-* > /dev/null 2>&1 ; then 40 now=`date '+%Y%m%d-%H%M%S'` 41 baseDir=$(dirname $0) 42 mkdir ${baseDir}/logs-${now} 43 mv ${chrootPath}/var/tmp/portresults/fail ${baseDir}/logs-${now} 44 mv ${chrootPath}/var/tmp/portresults/success ${baseDir}/logs-${now} 45 chmod -R a+rX ${baseDir}/logs-${now} 46 fi 47 23 48 for portname in $ports; do 24 49 if ls logs-*/success/${portname}.log > /dev/null 2>&1 ; then
Note: See TracChangeset
for help on using the changeset viewer.

