[FAQ]Re: Problem building index:
Ion-Mihai Tetcu
itetcu at people.tecnik93.com
Wed Dec 29 14:18:06 PST 2004
On Wed, 29 Dec 2004 16:09:16 -0500
Glenn Sieb <ges+lists at wingfoot.org> wrote:
> /usr/ports 515 $ make index
> \Generating INDEX - please wait..make: don't know how to make describe. Stop
> ===> games/xblast-beta failed
> *** Error code 1
> 1 error
a `ls /usr/ports/games/xblast-beta` will show why.
The port got removed, but you most certainly have a README.html in it,
who deasn't exist in cvs, so is wasn't deleted by cvsup, so the dir
exists but with no Makefile in it `make describe` fails.
This quick and un-elegant script will remove those kind of scripts:
#!/bin/sh
PORTS_CATEG_DIRS=`find /usr/ports/ -type d -maxdepth 1`
for CURR_DIR in ${PORTS_CATEG_DIRS}
do
echo ${CURR_DIR}
CURR_PORTS_DIR=`find ${CURR_DIR} -type d -maxdepth 1`
for CURR_PORT in ${CURR_PORTS_DIR}
do
if [ -f ${CURR_PORT}/README.html ]
then
FILES_NO=`ls -1 ${CURR_PORT} | wc -l | sed '/ /s///g'`
if [ "${FILES_NO}" -eq "1" ]
then
rm -R ${CURR_PORT}
echo -e "\t rm'ed ${CURR_PORT}"
fi
fi
done
done
--
IOnut
Unregistered ;) FreeBSD "user"
More information about the freebsd-ports
mailing list