From f0da7473eb3fe325b82844efb3f759e01fddcc40 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 2 Aug 2020 15:20:11 +0300 Subject: [PATCH] www.do DRY --- www.do | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/www.do b/www.do index 51b16f0..b2142c9 100644 --- a/www.do +++ b/www.do @@ -1,4 +1,5 @@ -rm -f gogost.html/*.html +html=gogost.html +rm -f $html/*.html ${MAKEINFO:-makeinfo} --html \ --set-customization-variable EXTRA_HEAD='' \ --set-customization-variable CSS_LINES="`cat style.css`" \ @@ -8,4 +9,6 @@ ${MAKEINFO:-makeinfo} --html \ --set-customization-variable TOP_NODE_UP_URL=index.html \ --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \ --set-customization-variable OPEN_QUOTE_SYMBOL=\" \ - -o gogost.html www.texi + -o $html www.texi +find $html -type d -exec chmod 755 {} \; +find $html -type f -exec chmod 644 {} \; -- 2.44.0