--- trunk/Makefile 2005/08/20 12:40:24 46 +++ trunk/Makefile 2005/08/20 14:08:02 47 @@ -31,7 +31,7 @@ rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ rm -Rf $(tmp) -profile: +profile: test test -e tmon.out || touch tmon.out sudo chown backuppc tmon.out date > $(profile_file) @@ -42,5 +42,5 @@ dprofpp 2>&1 | tee -a $(profile_file) echo "## DBI_PROFILE RUN" >> $(profile_file) DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) 2>&1 | tee -a $(profile_file) - mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'` + mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 2'`