ref: cc7f0317107c08335e12c0b0d1c09c73e761cdb8
dir: /mkfile/
PATHS=`{ls *.ht */*.ht | sed -e 's/\.ht$//g' | grep -v 'index'} OBJECTS=`{echo 'pub/'^$PATHS^'/index.html'} prepare:QV: changeblog.ht echo 'Prepare complete' mk build build:QV: $OBJECTS pub/index.html echo 'Build complete' changeblog.ht:Q: echo '<section> <ul>' > $target obs=`{basename `{ls changeblog/*.ht | sed -e 's/\.ht$//g'}} for(OB in $obs){ echo '<li><a href="/changeblog/'^$OB^'/">'$OB'</a></li>' >> $target } echo '</ul> </section>' >> $target echo '√ '$target' prepared' pub/index.html:Q: head.htf index.ht foot.htf if(! test -d pub) mkdir pub cat $prereq | sed -e 's:PAGETITLE:sirjofri:g' > pub/index.html echo '√ '^$target pub/%/index.html:Q: head.htf %.ht foot.htf dirpart=`{basename -d $target} if(! test -d $dirpart) mkdir -p $dirpart cat $prereq | sed -e 's:PAGETITLE:'^$stem^':g' > pub/$stem/index.html echo '√ '^$target