mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Remove the hard-coding of '-exp'. While here, factor out some other
hardcoding to defines.
This commit is contained in:
parent
667fac87d0
commit
ed6716f76f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255039
1 changed files with 9 additions and 6 deletions
|
@ -7,11 +7,16 @@
|
||||||
|
|
||||||
# alpha is obsolete
|
# alpha is obsolete
|
||||||
SUPPORTED_ARCHS="amd64 i386 ia64 powerpc sparc64"
|
SUPPORTED_ARCHS="amd64 i386 ia64 powerpc sparc64"
|
||||||
|
# 4 and 5 are obsolete
|
||||||
|
SUPPORTED_BUILDS_PATTERN="^[67891]"
|
||||||
ROOT_DIRECTORY=/var/portbuild
|
ROOT_DIRECTORY=/var/portbuild
|
||||||
|
|
||||||
OUTFILE=`basename $0 | sed -e "s/^do//"`".html"
|
OUTFILE=`basename $0 | sed -e "s/^do//"`".html"
|
||||||
TMPFILE=.${OUTFILE}
|
TMPFILE=.${OUTFILE}
|
||||||
|
|
||||||
|
# TODO change this to 'journal'
|
||||||
|
journalname="make"
|
||||||
|
|
||||||
# stylesheet seems like overkill for something this simple
|
# stylesheet seems like overkill for something this simple
|
||||||
TABLEBGCOLOR="#F0F0F0"
|
TABLEBGCOLOR="#F0F0F0"
|
||||||
THCOLOR="#E0E0FF"
|
THCOLOR="#E0E0FF"
|
||||||
|
@ -56,10 +61,9 @@ write_row () {
|
||||||
arch=$1
|
arch=$1
|
||||||
build=$2
|
build=$2
|
||||||
directory=${ROOT_DIRECTORY}/${arch}/${build}/builds/latest
|
directory=${ROOT_DIRECTORY}/${arch}/${build}/builds/latest
|
||||||
# XXX MCL I hate this name
|
journal=${directory}/${journalname}
|
||||||
journal=${directory}/make
|
|
||||||
|
|
||||||
branch=`echo $build | sed -e "s/-exp//"`
|
branch=`echo $build | awk -F '-' '{print $1}'`
|
||||||
if [ "$branch" = "4" ]; then
|
if [ "$branch" = "4" ]; then
|
||||||
indexfile=$directory/ports/INDEX
|
indexfile=$directory/ports/INDEX
|
||||||
else
|
else
|
||||||
|
@ -331,8 +335,7 @@ write_header
|
||||||
# display all the mainstream builds first
|
# display all the mainstream builds first
|
||||||
for arch in ${SUPPORTED_ARCHS}; do
|
for arch in ${SUPPORTED_ARCHS}; do
|
||||||
|
|
||||||
# drop 4 and 5 as obsolete
|
builds=`ls ${ROOT_DIRECTORY}/${arch} | grep "${SUPPORTED_BUILDS_PATTERN}$" | sort`
|
||||||
builds=`ls ${ROOT_DIRECTORY}/${arch} | grep '^[67891]$' | sort`
|
|
||||||
if [ ! -z "$builds" ]; then
|
if [ ! -z "$builds" ]; then
|
||||||
write_table_begin
|
write_table_begin
|
||||||
|
|
||||||
|
@ -348,7 +351,7 @@ done
|
||||||
# would break up the logical flow of the above)
|
# would break up the logical flow of the above)
|
||||||
for arch in ${SUPPORTED_ARCHS}; do
|
for arch in ${SUPPORTED_ARCHS}; do
|
||||||
|
|
||||||
builds=`ls ${ROOT_DIRECTORY}/${arch} | grep '^[67891]-exp$' | sort`
|
builds=`ls ${ROOT_DIRECTORY}/${arch} | grep "${SUPPORTED_BUILDS_PATTERN}-" | sort`
|
||||||
if [ ! -z "$builds" ]; then
|
if [ ! -z "$builds" ]; then
|
||||||
write_table_begin
|
write_table_begin
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue