PERFORCE change 123413 for review

Garrett Cooper gcooper at FreeBSD.org
Fri Jul 13 00:40:07 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123413

Change 123413 by gcooper at optimus-revised_pkgtools on 2007/07/13 00:39:14

	Fix for run_prof.sh (now allows you to run script from anywhere instead of from prof_scripts directory).

Affected files ...

.. //depot/projects/soc2007/revised_fbsd_pkgtools/usr/src/usr.sbin/pkg_install/prof_scripts/run_prof.sh#4 edit

Differences ...

==== //depot/projects/soc2007/revised_fbsd_pkgtools/usr/src/usr.sbin/pkg_install/prof_scripts/run_prof.sh#4 (text+ko) ====

@@ -7,13 +7,10 @@
 fi
 
 ITERATIONS=500
-LOG_DIR="/store/motonoad0/profile_logs"
+LOG_DIR="/store/motonoad0/new_profile_logs"
 PACKAGE_DIR="/usr/ports/packages/All"
 
-echo "Please change LOG_DIR's value"
-exit -1;
-
-SCRIPT_DIR=$PWD
+SCRIPT_DIR=`realpath $0 | perl -e '$pwd=$ENV{PWD}; print "$1/\n" if <STDIN> =~ /(.+)\/[^\/]+$/;'`
 
 [ ! -d "$LOG_DIR" ] && mkdir -p $LOG_DIR
 


More information about the p4-projects mailing list