PERFORCE change 123158 for review
Garrett Cooper
gcooper at FreeBSD.org
Sun Jul 8 20:46:00 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=123158
Change 123158 by gcooper at 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
More information about the p4-projects
mailing list