From: Philippe E. <ph...@us...> - 2003-04-16 22:44:03
|
Update of /cvsroot/oprofile/oprofile/utils In directory sc8-pr-cvs1:/tmp/cvs-serv2564/utils Modified Files: Tag: pp-interface-branch opcontrol Log Message: better opcontrol --reset handling regards, Phil Index: opcontrol =================================================================== RCS file: /cvsroot/oprofile/oprofile/utils/opcontrol,v retrieving revision 1.48.2.1 retrieving revision 1.48.2.2 diff -u -d -r1.48.2.1 -r1.48.2.2 --- opcontrol 16 Apr 2003 21:06:01 -0000 1.48.2.1 +++ opcontrol 16 Apr 2003 22:43:59 -0000 1.48.2.2 @@ -1084,7 +1084,13 @@ #remove all the sample files do_reset() { - rm -rf $CURRENT_SAMPLES_DIR + if test -z "$SAMPLES_DIR"; then + echo "opcontrol:do_reset() SAMPLES_DIR is empty!" + exit 1; + fi + # daemon use {kern} and {root} subdir, it's not a typo to not use ${} + rm -rf $SAMPLES_DIR/current/{kern} + rm -rf $SAMPLES_DIR/current/{root} hup_daemon } |