From 8c0528a7338d860dd7bb025b154f3dd9798201ae Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 15 Jan 2013 15:21:35 +0100 Subject: wixl: default output file to inputfile name with .msi extension --- tools/wixl/wixl.vala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools') 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 { -- cgit