/* PSPP - a program for statistical analysis.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009, 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
d = &odt->driver;
output_driver_init (d, &odt_class, name, device_type);
- odt->file_name = parse_string (opt (d, o, "output-file", "pspp.pdt"));
+ odt->file_name = parse_string (opt (d, o, "output-file", "pspp.odt"));
odt->debug = parse_boolean (opt (d, o, "debug", "false"));
odt->dirname = xstrdup ("odt-XXXXXX");
/* Zip up the directory */
ds_init_empty (&zip_cmd);
ds_put_format (&zip_cmd,
- "cd %s ; rm -f ../%s; zip -q -X ../%s mimetype; zip -q -X -u -r ../pspp.odt .",
- odt->dirname, odt->file_name, odt->file_name);
+ "cd %s ; rm -f ../%s; zip -q -X ../%s mimetype; zip -q -X -u -r ../%s .",
+ odt->dirname, odt->file_name, odt->file_name, odt->file_name);
system (ds_cstr (&zip_cmd));
ds_destroy (&zip_cmd);