diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-10-08 20:30:28 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-10-08 20:30:28 +0200 |
| commit | 5df79c53745fde5d6c3340a2979b1429cd5892c1 (patch) | |
| tree | 1a81af141708b826e9c61e8a04019994fcca8298 /htc/tree.htc | |
Initial import of htcd system 1.0
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'htc/tree.htc')
| -rw-r--r-- | htc/tree.htc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/htc/tree.htc b/htc/tree.htc new file mode 100644 index 0000000..8615108 --- /dev/null +++ b/htc/tree.htc | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | \const{HTCEXT}{htc htx html} | ||
| 2 | \const{SKIPDIR}{sys htc SCCS} | ||
| 3 | \def{tree.update}{}{ | ||
| 4 | [xmod:=\now]; | ||
| 5 | \ldef{trav}{x}{ | ||
| 6 | \staturi{\1}{ | ||
| 7 | \if(count stat.ALIAS)(@<-stat.); | ||
| 8 | \forall{it}{\dirent{\1}}{ | ||
| 9 | \if(\dirmod(it)&24576){ | ||
| 10 | \nif(\SKIPDIR which (it past \1)){\trav{[it]/}} | ||
| 11 | }{ | ||
| 12 | \if(\HTCEXT which (it rpast ".")){ | ||
| 13 | \staturi(it){\if(count stat.ALIAS)(@<-stat.)} | ||
| 14 | } | ||
| 15 | } | ||
| 16 | } | ||
| 17 | } | ||
| 18 | }; | ||
| 19 | \db{TREE}{\trav{/}\query(XMOD<xmod){\rem.rec}} | ||
| 20 | } | ||
| 21 | |||
