From 3ae8d5888af2ddb592b66fdba3764e220484b66d Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Fri, 19 Mar 2010 11:56:20 +0100 Subject: [PATCH] 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(+) create mode 100644 programs/attrib/Makefile.in create mode 100644 programs/attrib/attrib.c diff --git a/configure b/configure index c1778027946..e62a54e5b7f 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 ce14e53a1d2..1431a334000 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 00000000000..3696b934340 --- /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 + +@MAKE_PROG_RULES@ diff --git a/programs/attrib/attrib.c b/programs/attrib/attrib.c new file mode 100644 index 00000000000..9cb9d9fa5ad --- /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; +}