ar-lib (libgd-2.3.1) | : | ar-lib (libgd-2.3.2) | ||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
# Wrapper for Microsoft lib.exe | # Wrapper for Microsoft lib.exe | |||
me=ar-lib | me=ar-lib | |||
scriptversion=2012-03-01.08; # UTC | scriptversion=2019-07-04.01; # UTC | |||
# Copyright (C) 2010-2017 Free Software Foundation, Inc. | # Copyright (C) 2010-2020 Free Software Foundation, Inc. | |||
# Written by Peter Rosin <peda@lysator.liu.se>. | # Written by Peter Rosin <peda@lysator.liu.se>. | |||
# | # | |||
# This program is free software; you can redistribute it and/or modify | # This program is free software; you can redistribute it and/or modify | |||
# it under the terms of the GNU General Public License as published by | # it under the terms of the GNU General Public License as published by | |||
# the Free Software Foundation; either version 2, or (at your option) | # the Free Software Foundation; either version 2, or (at your option) | |||
# any later version. | # any later version. | |||
# | # | |||
# This program is distributed in the hope that it will be useful, | # This program is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
# GNU General Public License for more details. | # GNU General Public License for more details. | |||
# | # | |||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | |||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |||
# As a special exception to the GNU General Public License, if you | # As a special exception to the GNU General Public License, if you | |||
# distribute this file as part of a program that contains a | # distribute this file as part of a program that contains a | |||
# configuration script generated by Autoconf, you may include it under | # configuration script generated by Autoconf, you may include it under | |||
# the same distribution terms that you use for the rest of that program. | # the same distribution terms that you use for the rest of that program. | |||
# This file is maintained in Automake, please report | # This file is maintained in Automake, please report | |||
# bugs to <bug-automake@gnu.org> or send patches to | # bugs to <bug-automake@gnu.org> or send patches to | |||
# <automake-patches@gnu.org>. | # <automake-patches@gnu.org>. | |||
skipping to change at line 55 | skipping to change at line 55 | |||
{ | { | |||
file=$1 | file=$1 | |||
case $file in | case $file in | |||
/ | /[!/]*) # absolute file, and not a UNC file | / | /[!/]*) # absolute file, and not a UNC file | |||
if test -z "$file_conv"; then | if test -z "$file_conv"; then | |||
# lazily determine how to convert abs files | # lazily determine how to convert abs files | |||
case `uname -s` in | case `uname -s` in | |||
MINGW*) | MINGW*) | |||
file_conv=mingw | file_conv=mingw | |||
;; | ;; | |||
CYGWIN*) | CYGWIN* | MSYS*) | |||
file_conv=cygwin | file_conv=cygwin | |||
;; | ;; | |||
*) | *) | |||
file_conv=wine | file_conv=wine | |||
;; | ;; | |||
esac | esac | |||
fi | fi | |||
case $file_conv in | case $file_conv in | |||
mingw) | mingw) | |||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` | file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` | |||
;; | ;; | |||
cygwin) | cygwin | msys) | |||
file=`cygpath -m "$file" || echo "$file"` | file=`cygpath -m "$file" || echo "$file"` | |||
;; | ;; | |||
wine) | wine) | |||
file=`winepath -w "$file" || echo "$file"` | file=`winepath -w "$file" || echo "$file"` | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
esac | esac | |||
} | } | |||
skipping to change at line 226 | skipping to change at line 226 | |||
@*) | @*) | |||
func_at_file "${1#@}" -EXTRACT "$archive" | func_at_file "${1#@}" -EXTRACT "$archive" | |||
;; | ;; | |||
*) | *) | |||
func_file_conv "$1" | func_file_conv "$1" | |||
$AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $? | $AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $? | |||
;; | ;; | |||
esac | esac | |||
done | done | |||
else | else | |||
$AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member | $AR -NOLOGO -LIST "$archive" | tr -d '\r' | sed -e 's/\\/\\\\/g' \ | |||
do | | while read member | |||
$AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? | do | |||
done | $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? | |||
done | ||||
fi | fi | |||
elif test -n "$quick$replace"; then | elif test -n "$quick$replace"; then | |||
if test ! -f "$orig_archive"; then | if test ! -f "$orig_archive"; then | |||
if test -z "$create"; then | if test -z "$create"; then | |||
echo "$me: creating $orig_archive" | echo "$me: creating $orig_archive" | |||
fi | fi | |||
orig_archive= | orig_archive= | |||
else | else | |||
orig_archive=$archive | orig_archive=$archive | |||
End of changes. 6 change blocks. | ||||
9 lines changed or deleted | 10 lines changed or added |