[PATCH] quilt: fix building with dash
[openwrt.git] / tools / quilt / patches / 100-patch_2.6.1_version.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -274,7 +274,11 @@ fi
4  AC_MSG_CHECKING([the version of $PATCH])
5  if $PATCH --version 2> /dev/null | grep GNU >/dev/null; then
6    set -- `$PATCH --version 2> /dev/null`
7 -  patch_version=$2
8 +  if test x$1 = xGNU ; then
9 +    patch_version=$3
10 +  else
11 +    patch_version=$2
12 +  fi
13    AC_MSG_RESULT($patch_version)
14    saved_IFS=$IFS; IFS='.'
15    set -- $patch_version