Christian Costa : attrib.exe: Add stubbed command.

Alexandre Julliard julliard at winehq.org
Fri Mar 19 11:16:42 CDT 2010


Module: wine
Branch: master
Commit: 3ae8d5888af2ddb592b66fdba3764e220484b66d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3ae8d5888af2ddb592b66fdba3764e220484b66d

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Fri Mar 19 11:56:20 2010 +0100

attrib.exe: Add stubbed command.

---

 configure                   |    5 +++++
 configure.ac                |    1 +
 programs/attrib/Makefile.in |   12 ++++++++++++
 programs/attrib/attrib.c    |   34 ++++++++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index c177802..e62a54e 100755
--- a/configure
+++ b/configure
@@ -16026,6 +16026,10 @@ test "x$enable_loader" != xno && wine_fn_append_file ALL_TOP_DIRS "loader"
 wine_fn_config_makefile programs "Make.rules \$(MAKEDEP)"
 test "x$enable_programs" != xno && wine_fn_append_file ALL_TOP_DIRS "programs"
 
+wine_fn_config_program attrib
+wine_fn_config_makefile programs/attrib "programs/Makeprog.rules \$(MAKEDEP)"
+test "x$enable_attrib" != xno && wine_fn_append_file ALL_PROGRAM_DIRS "programs/attrib" && wine_fn_append_file ALL_INSTALL_DIRS "programs/attrib"
+
 wine_fn_config_program cacls
 wine_fn_config_makefile programs/cacls "programs/Makeprog.rules \$(MAKEDEP)"
 test "x$enable_cacls" != xno && wine_fn_append_file ALL_PROGRAM_DIRS "programs/cacls" && wine_fn_append_file ALL_INSTALL_DIRS "programs/cacls"
@@ -17470,6 +17474,7 @@ do
     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
+    "programs/attrib/Makefile") CONFIG_FILES="$CONFIG_FILES programs/attrib/Makefile" ;;
     "programs/cacls/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cacls/Makefile" ;;
     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
     "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index ce14e53..1431a33 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2642,6 +2642,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-cvs mailing list