From: Gary V. Vaughan Date: Tue, 7 Oct 2003 14:51:06 +0000 (+0000) Subject: * doc/libtool.texi (Invoking libtool): Updated. X-Git-Tag: release-1-9b~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=310b8e2d8cc35801bcc4cba91f85962f85402d96;p=thirdparty%2Flibtool.git * doc/libtool.texi (Invoking libtool): Updated. * ltmain.in: Add missing clean and finish modes to the shorthand options. --- diff --git a/ChangeLog b/ChangeLog index 010182d27..894ceb6ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2003-10-07 Gary V. Vaughan + * doc/libtool.texi (Invoking libtool): Updated. + * ltmain.in: Add missing clean and finish modes to the shorthand + options. + * ltmain.in: Typo in the --mode shorthand. 2003-10-07 Scott James Remnant diff --git a/doc/libtool.texi b/doc/libtool.texi index ee7308714..f0aa0d328 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -24,7 +24,7 @@ @ifnottex This file documents GNU Libtool @value{VERSION} -Copyright (C) 1996-2000 Free Software Foundation, Inc. +Copyright (C) 1996-2003 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 @@ -51,7 +51,7 @@ identical to this one except for the removal of this paragraph @page @vskip 0pt plus 1filll -Copyright @copyright{} 1996-2000 Free Software Foundation, Inc. +Copyright @copyright{} 1996-2003 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 @@ -1081,11 +1081,10 @@ specified, then detailed help for @var{mode} is displayed. @item --mode=@var{mode} -Use @var{mode} as the operation mode. If not specified, an attempt is -made to inferr the operation mode from the @var{mode-args}. Not specifying -the @var{mode} is currently deprecated, as there are too many situations -where it is not possible to guess. Future versions of Libtool will require -that @var{mode} be explicity set. +Use @var{mode} as the operation mode. When using libtool from the +command line, you can give just @var{mode} (or a unique abbreviation +of it) as the first argument as a shorthand for the full +@samp{--mode=@var{mode}}. @var{mode} must be set to one of the following: diff --git a/ltmain.in b/ltmain.in index 1d2851d9c..c2d1a2191 100644 --- a/ltmain.in +++ b/ltmain.in @@ -160,12 +160,18 @@ win32_libid () { # Shorthand for --mode=foo case $1 in +clean|clea|cle|cl) + shift; set -- --mode=clean ${1+"$@"} + ;; compile|compil|compi|comp|com|co|c) shift; set -- --mode=compile ${1+"$@"} ;; execute|execut|execu|exec|exe|ex|e) shift; set -- --mode=execute ${1+"$@"} ;; +finish|finis|fini|fin|fi|f) + shift; set -- --mode=finish ${1+"$@"} + ;; install|instal|insta|inst|ins|in|i) shift; set -- --mode=install ${1+"$@"} ;;