changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Allow to set optional dir listing sorting (ls) options with the config var: dir_listing_ls_opts

changeset 338: be4cc21304a6
parent 337: 871783aa0745
child 339: b09bd3c9a8bc
author: uriel@engel.se.cat-v.org
date: Tue, 20 Jan 2009 06:55:17 +0100
files: bin/werc.rc
description: Allow to set optional dir listing sorting (ls) options with the config var: dir_listing_ls_opts
     1.1--- a/bin/werc.rc	Tue Jan 20 04:13:53 2009 +0100
     1.2+++ b/bin/werc.rc	Tue Jan 20 06:55:17 2009 +0100
     1.3@@ -81,7 +81,7 @@
     1.4     d=`{basename -d $1}
     1.5     echo $d|sed 's,.*//,,g; s,/$,,; s,/, / ,g; s,.*,<h1 class="dir-list-head">&</h1> <ul class="dir-list">,'
     1.6     # Symlinks suck: '/.' forces ls to list the linked dir if $d is a symlink.
     1.7-    ls -F $d/. | sed $dirfilter$dirclean' s,.*/([^/]+/?)$,<li><a href="\1">\1</a></li>,'
     1.8+    ls -F $dir_listing_ls_opts $d/. | sed $dirfilter$dirclean' s,.*/([^/]+/?)$,<li><a href="\1">\1</a></li>,'
     1.9     echo '</ul>'
    1.10 }
    1.11