aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-24 02:20:33 +0000
committerMike Frysinger <vapier@gentoo.org>2010-09-24 02:20:33 +0000
commitf6636ca9d0993e27f3c92eb4b380a258bb04b731 (patch)
tree2ca46fb1f1e1cda8c22d6be3f7e734e66403292e /ac-wrapper.sh
parentVersion bump for autoconf-2.68. (diff)
downloadautotools-wrappers-f6636ca9d0993e27f3c92eb4b380a258bb04b731.tar.gz
autotools-wrappers-f6636ca9d0993e27f3c92eb4b380a258bb04b731.tar.bz2
autotools-wrappers-f6636ca9d0993e27f3c92eb4b380a258bb04b731.zip
Add seq fallback for crappy systems #338518 by Javier Villavicencio.
Package-Manager: portage-2.2_rc86/cvs/Linux x86_64
Diffstat (limited to 'ac-wrapper.sh')
-rwxr-xr-xac-wrapper.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/ac-wrapper.sh b/ac-wrapper.sh
index 1c0db8f..b42aad3 100755
--- a/ac-wrapper.sh
+++ b/ac-wrapper.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf-wrapper/files/ac-wrapper-10.sh,v 1.1 2010/09/22 23:52:55 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf-wrapper/files/ac-wrapper-10.sh,v 1.2 2010/09/24 02:20:33 vapier Exp $
# Based on the ac-wrapper.pl script provided by MandrakeSoft
# Rewritten in bash by Gregorio Guidi
@@ -29,6 +29,24 @@ if [ "${WANT_AUTOCONF}" = "2.1" ] && [ "${0##*/}" = "autom4te" ] ; then
" that would use autom4te."
fi
+if ! seq 0 0 2>/dev/null 1>&2 ; then #338518
+ seq() {
+ local f l i
+ case $# in
+ 1) f=1 i=1 l=$1;;
+ 2) f=$1 i=1 l=$2;;
+ 3) f=$1 i=$2 l=$3;;
+ esac
+ while :; do
+ [ $l -lt $f -a $i -gt 0 ] && break
+ [ $f -lt $l -a $i -lt 0 ] && break
+ echo $f
+ : $(( f += i ))
+ done
+ return 0
+ }
+fi
+
#
# Set up bindings between actual version and WANT_AUTOCONF
#