-- Kevin
---#! /bin/csh
set rootdir = /www set index = /usr/local/etc/http/index set indexprog = /usr/local/etc/http/waisindex
cd $rootdir set num = 0 foreach pathname (`du $rootdir | cut -f2 | tail -r`) cd $pathname echo "Current pathname is: $pathname" if ($num == 0) then set exportflag = "-export" else set exportflag = "-a" endif $indexprog -d $index $exportflag -T HTML *.html $indexprog -d $index -a -T TEXT *.txt $indexprog -d $index -a -T PS -nocontents *.ps $indexprog -d $index -a -T GIF -nocontents *.gif $indexprog -d $index -a -T AU -nocontents *.au $indexprog -d $index -a -T HQX -nocontents *.hqx $indexprog -d $index -a -T XBM -nocontents *.xbm $indexprog -d $index -a -T MPG -nocontents *.mpg $indexprog -d $index -a -T C -nocontents *.c @ num++ end echo "$num directories were indexed."