* mount.cc: Remove non-unix-like options (-x,-t,b) throughout.

(oopts): Use boolean constants for slightly increased clarity.
* configure.in: Remove apparently unneeded program_transfer_name code.
* configure: Regenerate.
This commit is contained in:
Christopher Faylor 2008-07-25 15:03:25 +00:00
parent e93f946aa7
commit 5f853b3fc5
4 changed files with 2638 additions and 1873 deletions

View File

@ -1,3 +1,11 @@
2008-07-25 Christopher Faylor <me+cygwin@cgf.cx>
* mount.cc: Remove non-unix-like options (-x,-t,b) throughout.
(oopts): Use boolean constants for slightly increased clarity.
* configure.in: Remove apparently unneeded program_transfer_name code.
* configure: Regenerate.
2008-07-24 Corinna Vinschen <corinna@vinschen.de>
* utils.sgml: Remove useless text.

4447
winsup/utils/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -23,17 +23,6 @@ AC_ARG_PROGRAM
AC_CHECK_LIB(iconv, libiconv, libiconv=-liconv)
AC_SUBST(libiconv)
if test "x$cross_compiling" = "xyes"; then
if test "x$program_transform_name" = "xs,x,x,"; then
program_transform_name=""
fi
if test "x$program_transform_name" = "x"; then
program_transform_name="s,^,$host-,"
else
program_transform_name="$program_transform_name -e s,^,$host-,"
fi
fi
INSTALL="/bin/sh "`cd $srcdir/../..; echo $(pwd)/install-sh -c`
AC_PROG_INSTALL

View File

@ -111,19 +111,12 @@ do_mount (const char *dev, const char *where, int flags)
static struct option longopts[] =
{
{"binary", no_argument, NULL, 'b'},
{"change-cygdrive-prefix", no_argument, NULL, 'c'},
{"cygwin-executable", no_argument, NULL, 'X'},
{"executable", no_argument, NULL, 'x'},
{"force", no_argument, NULL, 'f'},
{"help", no_argument, NULL, 'h' },
{"mount-commands", no_argument, NULL, 'm'},
{"no-executable", no_argument, NULL, 'E'},
{"options", required_argument, NULL, 'o'},
{"show-cygdrive-prefix", no_argument, NULL, 'p'},
{"system", no_argument, NULL, 's'},
{"text", no_argument, NULL, 't'},
{"user", no_argument, NULL, 'u'},
{"version", no_argument, NULL, 'v'},
{NULL, 0, NULL, 0}
};
@ -136,8 +129,6 @@ usage (FILE *where = stderr)
fprintf (where, "Usage: %s [OPTION] [<win32path> <posixpath>]\n\
Display information about mounted filesystems, or mount a filesystem\n\
\n\
-b, --binary (default) text files are equivalent to binary files\n\
(newline = \\n)\n\
-c, --change-cygdrive-prefix change the cygdrive path prefix to <posixpath>\n\
-f, --force force mount, don't warn about missing mount\n\
point directories\n\
@ -146,13 +137,7 @@ Display information about mounted filesystems, or mount a filesystem\n\
system mount points and cygdrive prefixes\n\
-o, --options X[,X...] specify mount options\n\
-p, --show-cygdrive-prefix show user and/or system cygdrive path prefix\n\
-s, --system (ignored)\n\
-t, --text text files get \\r\\n line endings\n\
-u, --user (ignored)\n\
-v, --version output version information and exit\n\
-x, --executable treat all files under mount point as executables\n\
-E, --no-executable treat all files under mount point as \n\
non-executables\n\
-X, --cygwin-executable treat all files under mount point as cygwin\n\
executables\n\
", progname);
@ -166,13 +151,13 @@ struct opt
bool clear;
} oopts[] =
{
{"user", MOUNT_SYSTEM, 1},
{"system", MOUNT_SYSTEM, 0},
{"binary", MOUNT_BINARY, 0},
{"text", MOUNT_BINARY, 1},
{"exec", MOUNT_EXEC, 0},
{"notexec", MOUNT_NOTEXEC, 0},
{"cygexec", MOUNT_CYGWIN_EXEC, 0},
{"user", MOUNT_SYSTEM, true},
{"system", MOUNT_SYSTEM, false},
{"binary", MOUNT_BINARY, false},
{"text", MOUNT_BINARY, true},
{"exec", MOUNT_EXEC, false},
{"notexec", MOUNT_NOTEXEC, false},
{"cygexec", MOUNT_CYGWIN_EXEC, false},
{"nosuid", 0, 0}
};
@ -271,26 +256,10 @@ main (int argc, char **argv)
else
usage ();
break;
case 's':
break;
case 't':
flags &= ~MOUNT_BINARY;
break;
case 'u':
break;
case 'v':
print_version ();
return 0;
break;
case 'x':
flags |= MOUNT_EXEC;
break;
case 'E':
flags |= MOUNT_NOTEXEC;
break;
case 'X':
flags |= MOUNT_CYGWIN_EXEC;
break;
default:
usage ();
}