]> Zhao Yanbai Git Server - minix.git/commitdiff
release.sh: avoid egrep -x which the base system doesn't support
authorErik van der Kouwe <erik@minix3.org>
Wed, 9 Jun 2010 14:32:19 +0000 (14:32 +0000)
committerErik van der Kouwe <erik@minix3.org>
Wed, 9 Jun 2010 14:32:19 +0000 (14:32 +0000)
tools/release.sh

index 9feff8f9d6b46f5bbd18fb708476dd649456e44e..ca3441f9525b3eef446b8382a934a12f152cdccb 100755 (executable)
@@ -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`"