From 480a9e0cba16ac105ed922a7ec56c802fc9e8c27 Mon Sep 17 00:00:00 2001 From: amery Date: Sat, 14 Jul 2007 22:01:11 +0000 Subject: [PATCH] * improved makefile mode to make it depend on style.css if there is a file with that name of the same folder. --- adtree | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/adtree b/adtree index be91cc9..7ae2640 100755 --- a/adtree +++ b/adtree @@ -209,6 +209,7 @@ adtree_deps() { adtree_makefile() { local source="$1" html= local filename= name= path= + local style= filename="${source##*/}"; name="${filename%.txt}" if [ "$filename" != "$source" ]; then @@ -221,8 +222,12 @@ adtree_makefile() { html="${path:+$path/}$name.html" fi + if [ -s "$path/style.css" ]; then + style="${path:+$path/}style.css" + fi + cat<