summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-15 15:21:35 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-15 20:05:56 +0100
commit8c0528a7338d860dd7bb025b154f3dd9798201ae (patch)
tree7d5217f70e556a44aa20065d0b71657d10c91bb2 /tools
parentd34198c2c034348329af4ce183cd5db74d4e53dd (diff)
downloadmsitools-8c0528a7338d860dd7bb025b154f3dd9798201ae.tar.gz
msitools-8c0528a7338d860dd7bb025b154f3dd9798201ae.tar.xz
msitools-8c0528a7338d860dd7bb025b154f3dd9798201ae.zip
wixl: default output file to inputfile name with .msi extension
Diffstat (limited to 'tools')
-rw-r--r--tools/wixl/wixl.vala8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/wixl/wixl.vala b/tools/wixl/wixl.vala
index a4ea371..e49636f 100644
--- a/tools/wixl/wixl.vala
+++ b/tools/wixl/wixl.vala
@@ -55,8 +55,12 @@ namespace Wixl {
}
if (output == null && !preproc) {
- GLib.stderr.printf (_("Please specify the output file.\n"));
- exit (1);
+ if (files[0].has_suffix (".wxs"))
+ output = files[0].slice (0, -4) + ".msi";
+ else {
+ GLib.stderr.printf (_("Please specify the output file.\n"));
+ exit (1);
+ }
}
try {