]> git.pld-linux.org Git - packages/amanda.git/blob - amanda-bashizm.patch
- fix stupid bashizms in configure.in
[packages/amanda.git] / amanda-bashizm.patch
1 --- amanda-2.5.2p1/configure.in~        2007-06-22 15:02:56.000000000 +0200
2 +++ amanda-2.5.2p1/configure.in 2007-06-22 15:12:17.000000000 +0200
3 @@ -958,7 +958,7 @@
4      # now convert that to a comma-separated list of C strings
5      eval "set dummy ${SSH_OPTIONS}"; shift
6      SSH_OPTIONS=''
7 -    for i in "${@}"; do SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }\"${i/\"/\\\"}\""; done
8 +    for i in "${@}"; do SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }\"`echo $i | awk '/"/ {gsub(/"/,"\\"");} {print;}'`\""; done
9      AC_MSG_RESULT($SSH_OPTIONS)
10  
11      AC_DEFINE_UNQUOTED(SSH_OPTIONS, $SSH_OPTIONS, [Arguments to ssh])
12 @@ -1181,7 +1181,6 @@
13         fi
14          AC_CHECK_LIB(krb5support,main)
15         KRB5LDFLAGS=-L$k5libdir
16 -       break
17  fi
18  
19  if test "x$KRB5LDFLAGS" = "x" ; then
20 @@ -1620,7 +1620,7 @@
21  
22  AC_PATH_PROGS(GNUTAR,gtar gnutar tar,,$LOCSYSPATH)
23  if test ! -z "$GNUTAR"; then
24 -  case "`\"$GNUTAR\" --version 2>&1`" in
25 +  case "`$GNUTAR --version 2>&1`" in
26     *GNU*tar* | *Free*paxutils* )
27                 AC_DEFINE_UNQUOTED(GNUTAR,"$GNUTAR",[Define to the location of Gnu tar. ])
28                 ;;
29 @@ -1633,7 +1633,7 @@
30  
31  AC_PATH_PROGS(SAMBA_CLIENT,smbclient,,$LOCSYSPATH)
32  if test ! -z "$SAMBA_CLIENT"; then
33 -  case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
34 +  case "`$SAMBA_CLIENT '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
35    *"Unknown host"*)
36                 smbversion=1
37                 ;;
This page took 0.033084 seconds and 4 git commands to generate.