[PATCH] attrib.exe: Add stubbed command

Christian Costa titan.costa at wanadoo.fr
Wed Mar 17 06:22:49 CDT 2010


--

Needed by an installer
---

 configure.ac                |    1 +
 programs/attrib/Makefile.in |   14 ++++++++++++++
 programs/attrib/attrib.c    |   34 ++++++++++++++++++++++++++++++++++
 3 files changed, 49 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 3bb3536..cf5c0d9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2629,6 +2629,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..dca7f0c
--- /dev/null
+++ b/programs/attrib/Makefile.in
@@ -0,0 +1,14 @@
+EXTRADEFS = -DWINE_NO_UNICODE_MACROS
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = attrib.exe
+APPMODE   = -mconsole
+IMPORTS   = kernel32
+
+C_SRCS = attrib.c
+
+ at MAKE_PROG_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/programs/attrib/attrib.c b/programs/attrib/attrib.c
new file mode 100644
index 0000000..8814e92
--- /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 <stdio.h>
+
+int main(int argc, char *argv[])
+{
+    int i;
+
+    printf("attrib.exe is currently only a stub command\n");
+    printf("cmdline:");
+    for (i = 0; i < argc; i++)
+        printf(" %s", argv[i]);
+    printf("\n");
+
+    printf("Usage:  attrib [+a|-a] [+r|-r] [+s|-s] [+h|-h] [d:]path [/s]\n");
+
+    return 0;
+}


More information about the wine-patches mailing list