X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=build-aux%2Far-lib;h=4883fef7470e114334962706dfd20bf12a8b5a97;hb=2616a6587c4240184112fdd18d164227824a32f0;hp=aa4acbdaa0f1ad3debe0f2118719c24df8bea62a;hpb=d59c72566f0175f5b0c1cabb17ed00d81dc4ad2b;p=gnulib.git diff --git a/build-aux/ar-lib b/build-aux/ar-lib index aa4acbdaa..4883fef74 100755 --- a/build-aux/ar-lib +++ b/build-aux/ar-lib @@ -2,7 +2,7 @@ # Wrapper for Microsoft lib.exe me=ar-lib -scriptversion=2010-08-08.07; # UTC +scriptversion=2010-09-02.19; # UTC # Copyright (C) 2010 Free Software # Foundation, Inc. @@ -121,8 +121,28 @@ fi AR=$1 shift -action=$1 -shift +while : +do + if test $# -lt 2; then + func_error "you must specify a program, an action and an archive" + fi + case $1 in + -lib | -LIB \ + | -ltcg | -LTCG \ + | -machine* | -MACHINE* \ + | -subsystem* | -SUBSYSTEM* \ + | -verbose | -VERBOSE \ + | -wx* | -WX* ) + AR="$AR $1" + shift + ;; + *) + action=$1 + shift + break + ;; + esac +done orig_archive=$1 shift func_file_conv "$orig_archive" @@ -199,7 +219,7 @@ elif test -n "$extract"; then esac done else - $AR -NOLOGO -LIST "$archive" | while read member + $AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member do $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? done