Workaround for the fact that 4/ports is no longer populated on pointyhat.

This commit is contained in:
Mark Linimon 2007-03-09 02:43:55 +00:00
parent 63b00b65ff
commit 9d6f970760
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186941

View File

@ -61,7 +61,12 @@ write_row () {
fi
# work around the fact that 5-exp is really 6-exp-prime
if [ ! -f $indexfile ]; then
indexfile=$directory/ports/`cd $directory/ports&&ls INDEX* | head -1`
if [ -d $directory/ports ]; then
indexfile=$directory/ports/`cd $directory/ports&&ls INDEX* | head -1`
else
# work around the fact that 4 is EOL and thus has no ports/ directory
indexfile=$directory/logs/`cd $directory/logs&&ls INDEX* | head -1`
fi
fi
# column: date of CVS checkout