shithub: werc

Download patch

ref: 9f734cf2e0c8a201c4c0e22d34c10d06eda88919
parent: 67e4dc9fd4d9b444627d4bd3834beb2e65697ffd
author: uriel <uriel@engel.se.cat-v.org>
date: Mon Oct 13 21:16:41 EDT 2008

Remove some clumsy commented out code to change menu item order in blog dirs

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -31,13 +31,7 @@
 
 # Sidebar 
 fn menu {
-    lsArgs = ('-F')
-    # XXX will not work properly for $#blogDirs > 1 and matching is hackish
-    # XXX Work in progress, doesn't work well enough to be usable: too inconsistent, doesn't handle corner cases well at all
-    #if ( ! ~ $#blogDirs 0 && ~ $blogDirs^/ *$1 *$1/ ) { 
-    #	lsArgs = ($lsArgs -r)
-    #}
-    ls $lsArgs $1 | sed $dirfilter | awk -F/ '
+    ls -F $1 | sed $dirfilter | awk -F/ '
     BEGIN { print "<ul class=\"side-bar\">" }
     END { print "</ul>" }
     # Should add \. to the list of allowed chars in file names, but need to find a way to filter out .txt and so on