X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=build-aux%2Far-lib;h=67f5f36f10372fd07dd689c8a66845fc91c2dfe0;hb=48fe477c9008efadab8cf8c0c3240d824c12a8b9;hp=85d028f4f32e4b25fa5a57617a028645c09db011;hpb=602241295d8c9845a6cf5098ca53bc4e0afd5839;p=gnulib.git diff --git a/build-aux/ar-lib b/build-aux/ar-lib index 85d028f4f..67f5f36f1 100755 --- a/build-aux/ar-lib +++ b/build-aux/ar-lib @@ -2,9 +2,9 @@ # Wrapper for Microsoft lib.exe me=ar-lib -scriptversion=2012-01-04.17; # UTC +scriptversion=2012-03-01.08; # UTC -# Copyright (C) 2010, 2012 Free Software Foundation, Inc. +# Copyright (C) 2010-2012 Free Software Foundation, Inc. # Written by Peter Rosin . # # This program is free software; you can redistribute it and/or modify @@ -153,7 +153,9 @@ action=${action#-} delete= extract= list= +quick= replace= +index= create= while test -n "$action" @@ -162,9 +164,13 @@ do d*) delete=yes ;; x*) extract=yes ;; t*) list=yes ;; + q*) quick=yes ;; r*) replace=yes ;; + s*) index=yes ;; + S*) ;; # the index is always updated implicitly c*) create=yes ;; u*) ;; # TODO: don't ignore the update modifier + v*) ;; # TODO: don't ignore the verbose modifier *) func_error "unknown action specified" ;; @@ -172,8 +178,8 @@ do action=${action#?} done -case $delete$extract$list$replace in - yes) +case $delete$extract$list$quick$replace,$index in + yes,* | ,yes) ;; yesyes*) func_error "more than one action specified" @@ -224,7 +230,7 @@ elif test -n "$extract"; then done fi -elif test -n "$replace"; then +elif test -n "$quick$replace"; then if test ! -f "$orig_archive"; then if test -z "$create"; then echo "$me: creating $orig_archive"