From: Erik van der Kouwe Date: Wed, 9 Jun 2010 14:32:19 +0000 (+0000) Subject: release.sh: avoid egrep -x which the base system doesn't support X-Git-Tag: v3.1.8~461 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/expt.png?a=commitdiff_plain;h=a8cf20754911e719c678560fdff9fe47399e198e;p=minix.git release.sh: avoid egrep -x which the base system doesn't support --- diff --git a/tools/release.sh b/tools/release.sh index 9feff8f9d..ca3441f95 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -131,7 +131,7 @@ fitfs() indir="`expr $BS / 4`" indir2="`expr $indir \* $indir`" formula="s=\\0;d=(s+$BS-1)/$BS;i=(d-$dir+$indir-1)/$indir;j=(i-1+$indir2-1)/$indir2;d+i+j" - zones=`( find $path | egrep -v ^$path/usr | xargs lstat -size | egrep -x "[0-9]+" | sed -r "s|.+|$formula|" | bc | tr ' + zones=`( find $path | egrep -v ^$path/usr | xargs lstat -size | egrep '^[0-9]+$' | sed -r "s|.+|$formula|" | bc | tr ' ' +; echo 0 ) | bc` zones="`expr $zones + $extra_zones`"