]> Cypherpunks.ru repositories - gogost.git/commitdiff
www.do DRY
authorSergey Matveev <stargrave@stargrave.org>
Sun, 2 Aug 2020 12:20:11 +0000 (15:20 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 2 Aug 2020 12:20:11 +0000 (15:20 +0300)
www.do

diff --git a/www.do b/www.do
index 51b16f0bb9a2390ed1e51a6c46547523b006e985..b2142c9d5b8956f4785681007612ba4632a43fa5 100644 (file)
--- 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='<link rev="made" href="mailto:webmaster@cypherpunks.ru">' \
     --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 {} \;