comparison sources/functions.sh @ 1358:9252453c40d0

Combine set_titlebar and "echo ===" stuff into announce() function. Consistently output target/stage info, and yank redundant instances.
author Rob Landley <rob@landley.net>
date Sun, 22 May 2011 04:18:30 -0500
parents d4b251e78fc0
children 02ada84fcbc5
comparison
equal deleted inserted replaced
1357:a1dc80180a05 1358:9252453c40d0
81 then 81 then
82 setupfor "$1" 82 setupfor "$1"
83 . "$SOURCES/sections/$1".build 83 . "$SOURCES/sections/$1".build
84 cleanup 84 cleanup
85 else 85 else
86 echo "=== build section $1" 86 announce "$1"
87 . "$SOURCES"/sections/"$1".sh 87 . "$SOURCES"/sections/"$1".sh
88 fi 88 fi
89 CPUS=$OLDCPUS 89 CPUS=$OLDCPUS
90 } 90 }
91 91
333 [ -e $STAGE_NAME-"$ARCH".tar.bz2 ] && 333 [ -e $STAGE_NAME-"$ARCH".tar.bz2 ] &&
334 link_arch_name $STAGE_NAME-{"$ARCH","$ARCH_NAME"}.tar.bz2 334 link_arch_name $STAGE_NAME-{"$ARCH","$ARCH_NAME"}.tar.bz2
335 335
336 if [ -e "$BUILD/$STAGE_NAME-$ARCH" ] 336 if [ -e "$BUILD/$STAGE_NAME-$ARCH" ]
337 then 337 then
338 echo "=== Using existing ${STAGE_NAME}-$ARCH" 338 announce "Using existing ${STAGE_NAME}-$ARCH"
339 339
340 return 1 340 return 1
341 else 341 else
342 mkdir -p "$BUILD/$STAGE_NAME-$ARCH" || dienow 342 mkdir -p "$BUILD/$STAGE_NAME-$ARCH" || dienow
343 fi 343 fi