projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
626ad6b
)
Prevent existing output file from interfereing with zip
author
John Darrington
<john@darrington.wattle.id.au>
Sat, 1 Aug 2009 09:10:03 +0000
(11:10 +0200)
committer
John Darrington
<john@darrington.wattle.id.au>
Sat, 1 Aug 2009 09:10:03 +0000
(11:10 +0200)
src/output/odt.c
patch
|
blob
|
history
diff --git
a/src/output/odt.c
b/src/output/odt.c
index d5658e89203d94448e61d349803e9671935595d2..59a628a6f9cb524241066f7fc41db24545318661 100644
(file)
--- a/
src/output/odt.c
+++ b/
src/output/odt.c
@@
-236,7
+236,7
@@
odt_close_driver (struct outp_driver *this)
/* Zip up the directory */
ds_init_empty (&zip_cmd);
- ds_put_format (&zip_cmd, "cd %s ;
zip -r ../pspp.odt . > /dev/null
", x->dirname);
+ ds_put_format (&zip_cmd, "cd %s ;
rm -f ../pspp.odt; zip -q -X ../pspp.odt mimetype; zip -q -X -u -r ../pspp.odt .
", x->dirname);
system (ds_cstr (&zip_cmd));
ds_destroy (&zip_cmd);