/[BackupPC]/trunk/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 55 by dpavlin, Sun Aug 21 12:46:24 2005 UTC revision 56 by dpavlin, Sun Aug 21 13:52:47 2005 UTC
# Line 1  Line 1 
1  tmp=/tmp/backuppc-svn/  tmp=/tmp/backuppc-svn/
2  target=/data/backuppc/  target=/data/backuppc/
3  profile_opt=-d  profile_opt=
4  profile_file=profile  profile_file=profile
5    db=backuppc
6    
7  all:  all:
8          @echo "make install to install BackupPC using sudo"          @echo "make install to install BackupPC using sudo"
# Line 34  asa: Line 35  asa:
35  profile: test  profile: test
36          test -e tmon.out || touch tmon.out          test -e tmon.out || touch tmon.out
37          sudo chown backuppc tmon.out          sudo chown backuppc tmon.out
38            dropdb $(db) || echo "skip drop db"
39            createdb $(db)
40          date > $(profile_file)          date > $(profile_file)
41          echo "## NORMAL RUN" >> $(profile_file)          echo "## NORMAL RUN" >> $(profile_file)
42          sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) | tee -a $(profile_file)          sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
43          echo "## DProf RUN" >> $(profile_file)          echo "## DProf RUN" >> $(profile_file)
44          sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb $(profile_opt)          sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
45          dprofpp 2>&1 | tee -a $(profile_file)          dprofpp 2>&1 | tee -a $(profile_file)
46          echo "## DBI_PROFILE RUN" >> $(profile_file)          echo "## DBI_PROFILE RUN" >> $(profile_file)
47          DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) 2>&1 | tee -a $(profile_file)          DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
48          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 + 1'`
49    

Legend:
Removed from v.55  
changed lines
  Added in v.56

  ViewVC Help
Powered by ViewVC 1.1.26