New menu implementation, removes the recursive calls to rc/awk, also makes use of dirfilter more consistent and simplifies some code.

Other minnor cleanups.
This commit is contained in:
Uriel 2008-10-27 00:41:23 +01:00
parent bdf9922a24
commit b7f33b8d07
3 changed files with 47 additions and 34 deletions

View file

@ -25,7 +25,7 @@ fn listDir {
if(! ~ $#redirectPermanent 1)
{
for ( i in `{ ls -d $d/*/ $d/*.md $d/*.html $d/*.txt >[2]/dev/null |sed $dirfilter^'/index$/d;' } ) {
for ( i in `{ ls -d $d/*/ $d/*.md $d/*.html $d/*.txt >[2]/dev/null |sed $dirfilter} ) {
desc = ''
if (test -f $i.md) {
desc = `{ getMdDesc $i.md }