diff options
author | linimon <linimon@FreeBSD.org> | 2010-05-26 04:08:56 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2010-05-26 04:08:56 +0800 |
commit | e963d1e9beca5372abe4054c906a03ea36ed119d (patch) | |
tree | fbcca3aefcd90fceec45532c35e0aa3104fb533b | |
parent | b914f6c5c7f6141bd4c9fa2d2748f33c813f8949 (diff) | |
download | freebsd-ports-gnome-e963d1e9beca5372abe4054c906a03ea36ed119d.tar.gz freebsd-ports-gnome-e963d1e9beca5372abe4054c906a03ea36ed119d.tar.zst freebsd-ports-gnome-e963d1e9beca5372abe4054c906a03ea36ed119d.zip |
Eliminate some more hardcoding. Expand the pattern for "non-mainstream"
builds to also catch \., not just \-.
-rwxr-xr-x | Tools/portbuild/scripts/dopackagestats | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Tools/portbuild/scripts/dopackagestats b/Tools/portbuild/scripts/dopackagestats index 988c9945cf2a..f0d3b4df08e9 100755 --- a/Tools/portbuild/scripts/dopackagestats +++ b/Tools/portbuild/scripts/dopackagestats @@ -172,7 +172,7 @@ write_row () { # column: running flag running_flag="N" - # the last grep eliminates false positive of i386-6-exp for i386-6; + # the last grep eliminates false positive of i386-6-xyz for i386-6; # if we are still running FreeBSD in the year 3000, s/2/3/ running_processes_for_build=`ps axww | \ grep "pdispatch $arch $build " | \ @@ -335,7 +335,9 @@ write_header # display all the mainstream builds first for arch in ${SUPPORTED_ARCHS}; do - builds=`ls ${ROOT_DIRECTORY}/${arch} | grep "${SUPPORTED_BUILDS_PATTERN}$" | sort` + builds=`ls ${ROOT_DIRECTORY}/${arch} | \ + grep "${SUPPORTED_BUILDS_PATTERN}$" | \ + sort` if [ ! -z "$builds" ]; then write_table_begin @@ -347,11 +349,13 @@ for arch in ${SUPPORTED_ARCHS}; do fi done -# then display all -exp builds (probably only of interest to portmgr; -# would break up the logical flow of the above) +# then display all the non-mainstream builds (probably only of interest +# to portmgr; would break up the logical flow of the above) for arch in ${SUPPORTED_ARCHS}; do - builds=`ls ${ROOT_DIRECTORY}/${arch} | grep "${SUPPORTED_BUILDS_PATTERN}-" | sort` + builds=`ls ${ROOT_DIRECTORY}/${arch} | \ + grep "${SUPPORTED_BUILDS_PATTERN}[-\.]" | \ + sort` if [ ! -z "$builds" ]; then write_table_begin |