release.sh: avoid egrep -x which the base system doesn't support

This commit is contained in:
Erik van der Kouwe 2010-06-09 14:32:19 +00:00
parent eec65ac664
commit a8cf207549

View file

@ -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`"