r113@athlon: dpavlin | 2005-09-01 20:38:07 +0200
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Thu, 1 Sep 2005 18:38:49 +0000 (18:38 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Thu, 1 Sep 2005 18:38:49 +0000 (18:38 +0000)
 start gnumeric on generated .xls if found

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@111 8392b6e1-25fa-0310-8288-cc32f8e212ea

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)