another fix for profile target
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Sun, 21 Aug 2005 12:46:24 +0000 (12:46 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Sun, 21 Aug 2005 12:46:24 +0000 (12:46 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@54 8392b6e1-25fa-0310-8288-cc32f8e212ea

Makefile

index d0962e1..b943af0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,5 +42,5 @@ profile: test
        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 + 2'`
+       mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`