Date: Sun, 8 Jul 2007 20:45:59 GMT From: Garrett Cooper <gcooper@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 123158 for review Message-ID: <200707082045.l68Kjx1h057581@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123158 Change 123158 by gcooper@optimus-revised_pkgtools on 2007/07/08 20:45:33 On second thought, I should check to make sure that the package directory (/usr/ports/packages/All) exists before running a lot of iterations with the perl scripts, which may result in 'interesting' failures. Affected files ... .. //depot/projects/soc2007/revised_fbsd_pkgtools/usr/src/usr.sbin/pkg_install/prof_scripts/run_prof.sh#2 edit Differences ... ==== //depot/projects/soc2007/revised_fbsd_pkgtools/usr/src/usr.sbin/pkg_install/prof_scripts/run_prof.sh#2 (text+ko) ==== @@ -8,6 +8,7 @@ ITERATIONS=500 LOG_DIR="/store/motonoad0/profile_logs" +PACKAGE_DIR="/usr/ports/packages/All" echo "Please change LOG_DIR's value" exit -1; @@ -16,7 +17,12 @@ [ ! -d "$LOG_DIR" ] && mkdir -p $LOG_DIR -cd /usr/ports/packages/All +if [ ! -d "$PACKAGE_DIR" ] ; then + echo "ERROR: $PACKAGE_DIR doesn't exist; exiting.." + exit -1; +fi + +cd $PACKAGE_DIR for i in $pkgs; do $SCRIPT_DIR/prof_process.pl $ITERATIONS ${i}* $LOG_DIR
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707082045.l68Kjx1h057581>