/[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

Contents of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (show annotations)
Sat Aug 20 14:08:02 2005 UTC (18 years, 8 months ago) by dpavlin
File size: 1339 byte(s)
profile target now calls test to install new version, minor fixes in profile
file generation

1 tmp=/tmp/backuppc-svn/
2 target=/data/backuppc/
3 profile_opt=-d
4 profile_file=profile
5
6 all:
7 @echo "make install to install BackupPC using sudo"
8
9 test: stop reinstall start
10
11 reinstall:
12 sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl
13
14 install:
15 sudo perl ./configure.pl
16
17 start:
18 #sudo -u backuppc /data/backuppc/bin/BackupPC -d
19 sudo $(target)/etc/backuppc start
20
21 stop:
22 #sudo -u backuppc killall BackupPC && sleep 1 || true
23 sudo $(target)/etc/backuppc stop
24
25 install-etc:
26 test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc
27
28 asa:
29 rm -Rf $(tmp)
30 svn export . $(tmp)
31 rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
32 rm -Rf $(tmp)
33
34 profile: test
35 test -e tmon.out || touch tmon.out
36 sudo chown backuppc tmon.out
37 date > $(profile_file)
38 echo "## NORMAL RUN" >> $(profile_file)
39 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) | tee -a $(profile_file)
40 echo "## DProf RUN" >> $(profile_file)
41 sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb $(profile_opt)
42 dprofpp 2>&1 | tee -a $(profile_file)
43 echo "## DBI_PROFILE RUN" >> $(profile_file)
44 DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) 2>&1 | tee -a $(profile_file)
45 mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 2'`
46

  ViewVC Help
Powered by ViewVC 1.1.26