--- trunk/Makefile 2005/08/31 20:33:58 106 +++ trunk/Makefile 2005/09/14 13:20:03 119 @@ -33,8 +33,9 @@ sudo rm -Rf /data/backuppc/data/casket || true sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i -xls: - sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report && cp -vf /tmp/report.xls ~/public_html/ +xls: test + sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report + which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/ asa: rm -Rf $(tmp) @@ -42,6 +43,9 @@ rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ rm -Rf $(tmp) +html: + test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html + profile: test test -e tmon.out || touch tmon.out sudo chown backuppc tmon.out @@ -49,8 +53,13 @@ createdb $(db) date > $(profile_file) echo "## NORMAL RUN" >> $(profile_file) + sudo rm -Rf /data/backuppc/data/casket || true + estcall raw -auth admin admin 'http://localhost:1978/master?action=nodedel&name=backuppc' || true + estcall raw -auth admin admin 'http://localhost:1978/master?action=nodeadd&name=backuppc&label=BackupPC%20search%20index' sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file) echo "## DProf RUN" >> $(profile_file) + sudo rm -Rf /data/backuppc/data/casket || true + estcall raw -auth admin admin 'http://localhost:1978/master?action=nodeadd&name=backuppc&label=BackupPC%20search%20index' sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) dprofpp 2>&1 | tee -a $(profile_file) echo "## DBI_PROFILE RUN" >> $(profile_file)