From 16bad58a8c7b6d89cc96e3a5654be7a9d47a6f30 Mon Sep 17 00:00:00 2001
From: Jacek Caban <jacek@codeweavers.com>
Date: Tue, 27 Jul 2010 15:51:18 +0200
Subject: [PATCH] wscript.exe: Added stub implementation.

---
 configure                    |  1 +
 configure.ac                 |  1 +
 programs/wscript/Makefile.in | 13 +++++++++++++
 programs/wscript/main.c      | 32 ++++++++++++++++++++++++++++++++
 4 files changed, 47 insertions(+)
 create mode 100644 programs/wscript/Makefile.in
 create mode 100644 programs/wscript/main.c

diff --git a/configure b/configure
index 76616170195..ead05fb8081 100755
--- a/configure
+++ b/configure
@@ -14913,6 +14913,7 @@ wine_fn_config_program winoldap.mod16 enable_win16 install
 wine_fn_config_program winver enable_winver install
 wine_fn_config_program wordpad enable_wordpad install
 wine_fn_config_program write enable_write install
+wine_fn_config_program wscript enable_wscript install
 wine_fn_config_program xcopy enable_xcopy install
 wine_fn_config_makefile server enable_server
 wine_fn_config_tool tools
diff --git a/configure.ac b/configure.ac
index 5ba22c41e7e..a3a6c6754ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2769,6 +2769,7 @@ WINE_CONFIG_PROGRAM(winoldap.mod16,install,enable_win16)
 WINE_CONFIG_PROGRAM(winver,install)
 WINE_CONFIG_PROGRAM(wordpad,install)
 WINE_CONFIG_PROGRAM(write,install)
+WINE_CONFIG_PROGRAM(wscript,install)
 WINE_CONFIG_PROGRAM(xcopy,install)
 WINE_CONFIG_MAKEFILE([server])
 WINE_CONFIG_TOOL(tools)
diff --git a/programs/wscript/Makefile.in b/programs/wscript/Makefile.in
new file mode 100644
index 00000000000..8d208ba3905
--- /dev/null
+++ b/programs/wscript/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = wscript.exe
+APPMODE   = -mwindows -municode
+IMPORTS   =
+EXTRADEFS = -DWINE_NO_UNICODE_MACROS
+
+C_SRCS = \
+	main.c
+
+@MAKE_PROG_RULES@
diff --git a/programs/wscript/main.c b/programs/wscript/main.c
new file mode 100644
index 00000000000..33e14e99b15
--- /dev/null
+++ b/programs/wscript/main.c
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2010 Jacek Caban for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+
+#include <windef.h>
+#include <winbase.h>
+
+#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(wscript);
+
+int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cmdshow)
+{
+    WINE_FIXME("(%p %p %s %x)\n", hInst, hPrevInst, wine_dbgstr_w(cmdline), cmdshow);
+    return 0;
+}
-- 
GitLab