create changelog with html target
[BackupPC.git] / Makefile
index d663ebf..d6c7547 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,17 +24,28 @@ stop:
        sudo $(target)/etc/backuppc stop
 
 install-etc:
-       test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc
+       test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
 
 update:
        sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
 
+index: test
+       sudo rm -Rf /data/backuppc/data/casket || true
+       sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i
+
+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)
        svn export . $(tmp)
        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