r113@athlon: dpavlin | 2005-09-01 20:38:07 +0200
[BackupPC.git] / Makefile
index 111ff51..2177861 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,8 @@ index: test
        sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i
 
 xls: test
-       sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report && cp -vf /tmp/report.xls ~/public_html/
+       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)