From owner-p4-projects@FreeBSD.ORG Sun Jul 8 20:46:00 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 17D5F16A46C; Sun, 8 Jul 2007 20:46:00 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE04A16A469 for ; Sun, 8 Jul 2007 20:45:59 +0000 (UTC) (envelope-from gcooper@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id CF0D013C457 for ; Sun, 8 Jul 2007 20:45:59 +0000 (UTC) (envelope-from gcooper@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l68KjxUh057584 for ; Sun, 8 Jul 2007 20:45:59 GMT (envelope-from gcooper@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l68Kjx1h057581 for perforce@freebsd.org; Sun, 8 Jul 2007 20:45:59 GMT (envelope-from gcooper@FreeBSD.org) Date: Sun, 8 Jul 2007 20:45:59 GMT Message-Id: <200707082045.l68Kjx1h057581@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gcooper@FreeBSD.org using -f From: Garrett Cooper To: Perforce Change Reviews Cc: Subject: PERFORCE change 123158 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 20:46:00 -0000 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