[PATCH] attrib.exe: Add stubbed command (try 2)

Christian Costa titan.costa at wanadoo.fr
Fri Mar 19 05:56:20 CDT 2010


--
Convert to unicode application, make use of debug channel and remove usage.
---

 configure.ac                |    1 +
 programs/attrib/Makefile.in |   12 ++++++++++++
 programs/attrib/attrib.c    |   34 ++++++++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+), 0 deletions(-)
 create mode 100644 programs/attrib/Makefile.in
 create mode 100644 programs/attrib/attrib.c
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 5350000..0681e93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2641,6 +2641,7 @@ WINE_CONFIG_MAKEFILE([libs/wine/Makefile],[Make.rules])
 WINE_CONFIG_MAKEFILE([libs/wpp/Makefile],[Make.rules])
 WINE_CONFIG_MAKEFILE([loader/Makefile],[Make.rules],[ALL_TOP_DIRS])
 WINE_CONFIG_MAKEFILE([programs/Makefile],[Make.rules],[ALL_TOP_DIRS])
+WINE_CONFIG_PROGRAM(attrib,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS])
 WINE_CONFIG_PROGRAM(cacls,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS])
 WINE_CONFIG_PROGRAM(clock,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS])
 WINE_CONFIG_PROGRAM(cmd,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS])
diff --git a/programs/attrib/Makefile.in b/programs/attrib/Makefile.in
new file mode 100644
index 0000000..3696b93
--- /dev/null
+++ b/programs/attrib/Makefile.in
@@ -0,0 +1,12 @@
+EXTRADEFS = -DWINE_NO_UNICODE_MACROS
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = attrib.exe
+APPMODE   = -mconsole -municode
+IMPORTS   = kernel32
+
+C_SRCS = attrib.c
+
+ at MAKE_PROG_RULES@
diff --git a/programs/attrib/attrib.c b/programs/attrib/attrib.c
new file mode 100644
index 0000000..9cb9d9f
--- /dev/null
+++ b/programs/attrib/attrib.c
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2010 Christian Costa
+ *
+ * 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 "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(attrib);
+
+int wmain(int argc, WCHAR *argv[])
+{
+    int i;
+
+    WINE_FIXME("attrib.exe is currently only a stub command\n");
+    WINE_FIXME("cmdline:");
+    for (i = 0; i < argc; i++)
+        WINE_FIXME(" %s", wine_dbgstr_w(argv[i]));
+    WINE_FIXME("\n");
+
+    return 0;
+}


More information about the wine-patches mailing list