Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2007 01:51:38 GMT
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123512 for review
Message-ID:  <200707150151.l6F1pcV5091531@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123512

Change 123512 by gcooper@optimus-revised_pkgtools on 2007/07/15 01:51:18

	prof_process: Better assumption for determining package name from filename.
	run_prof.sh: Get rid of echo at the bottom of script and make it into a command again.

Affected files ...

.. //depot/projects/soc2007/revised_fbsd_pkgtools/usr/src/usr.sbin/pkg_install/prof_scripts/prof_process.pl#3 edit
.. //depot/projects/soc2007/revised_fbsd_pkgtools/usr/src/usr.sbin/pkg_install/prof_scripts/run_prof.sh#5 edit

Differences ...

==== //depot/projects/soc2007/revised_fbsd_pkgtools/usr/src/usr.sbin/pkg_install/prof_scripts/prof_process.pl#3 (text+ko) ====

@@ -6,8 +6,11 @@
 }
 
 $package = $ARGV[1];
+$package = $1 if $package =~ /(.+)-.+/;
 $logdir = "$ARGV[2]/$package";
 
+system("mkdir $logdir");
+
 foreach my $iteration (1..$ARGV[0]) {
 
 	my ( %hash, %count_hash );

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

@@ -25,4 +25,4 @@
 	$SCRIPT_DIR/prof_process.pl $ITERATIONS ${i}* $LOG_DIR
 done
 
-echo $SCRIPT_DIR/prof_postprocess.pl $LOG_DIR
+$SCRIPT_DIR/prof_postprocess.pl $LOG_DIR



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707150151.l6F1pcV5091531>