On Jan 15, 2005, at 1:55 AM, Timothy Luoma wrote:
-s looks promising (d'oh, checked make.conf settings but not man page... far too late, must sleep)
it's still too chatty. Configure makes a lot of noise.
Actually the redirect works well, esp. now that someone explained the redirect (new to 'sudo' too)
spoke too soon. it didn't work. I think it has something to do with zsh.
Anyway, I decided that what I really wanted was a lot of the installs anyway, in some organized fashion, so I made a shell script, which works fine under 'sudo'
Here it is in case anyone is curious
TjL
#!/bin/sh
# # the purpose of this script is to suppress the output of # 'make install clean' and to log it to a file #
NAME=`basename $0`
LOG_DIR=/var/db/installs
if [ ! -d "$LOG_DIR" ]
then
mkdir -p "$LOG_DIR" ||\
(echo "$NAME: FATAL cannot find or create $LOG_DIR" && exit 1)
fi
PWD_SAFE=`echo $PWD | sed 's#/#.#g; s#^.##g'`
INSTALL_LOG="$LOG_DIR/$PWD_SAFE"
# we touch the log. if it already exists, we don't care, we'll just append to it
touch $INSTALL_LOG
echo "
---
$NAME: BEGINNING log of make install clean from $PWD which started at `date`
" >> $INSTALL_LOG
(make install clean 2>&1) >> $INSTALL_LOG
EXITCODE="$?"
echo "
$NAME: END log of make install clean from $PWD which finished at `date` " >> $INSTALL_LOG
if [ "$EXITCODE" = "0" ]
then
echo "$0: make install clean done from $PWD, logged to $INSTALL_LOG"
else
echo -n "
NOTE: 'make install clean' finished in $PWD Logged to $INSTALL_LOG
DID NOT EXIT CLEANLY: $EXITCODE
"
fi exit 0
# EOF
_______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"