summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2020-07-25 12:59:35 +0300
committerSergey Matveev <stargrave@stargrave.org>2020-07-25 12:59:35 +0300
commit89c0363c97c77a64c2af96442dd1bfe4ff548382 (patch)
tree62d138a578d851ce453aec3b6dcd20b6d9eb72ee
parentfa8293864293841c6bbcc358cf17ebe8f151a031 (diff)
downloadcryptoparty-www-89c0363c97c77a64c2af96442dd1bfe4ff548382.tar.xz
Использовать redo вместо MakefileHEADmaster
-rw-r--r--Makefile23
-rw-r--r--all.do16
2 files changed, 16 insertions, 23 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index edc3506..0000000
--- a/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-.PHONY: static
-
-all: clean html static
-
-clean:
- rm -rf cryptoparty.html
-
-CSS != cat style.css
-
-html:
- makeinfo --html \
- --set-customization-variable CSS_LINES='$(CSS)' \
- --set-customization-variable SHOW_TITLE=0 \
- --set-customization-variable USE_ACCESSKEY=0 \
- --set-customization-variable DATE_IN_HEADER=1 \
- --set-customization-variable TOP_NODE_UP_URL=index.html \
- --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
- --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
- -o cryptoparty.html index.texi
-
-static:
- cd static ; tar cf - . | tar xfC - ../cryptoparty.html
- cp -f logo.png cryptoparty.html
diff --git a/all.do b/all.do
new file mode 100644
index 0000000..de787d6
--- /dev/null
+++ b/all.do
@@ -0,0 +1,16 @@
+html=cryptoparty.html
+rm -f $html/*.html
+${MAKEINFO:-makeinfo} --html \
+ --set-customization-variable EXTRA_HEAD='<link rev="made" href="mailto:webmaster@cryptoparty.ru">' \
+ --set-customization-variable CSS_LINES="`cat style.css`" \
+ --set-customization-variable SHOW_TITLE=0 \
+ --set-customization-variable USE_ACCESSKEY=0 \
+ --set-customization-variable DATE_IN_HEADER=1 \
+ --set-customization-variable TOP_NODE_UP_URL=index.html \
+ --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
+ --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
+ -o $html index.texi
+( cd static ; tar cf - . | tar xfC - ../$html )
+cp -f logo.png $html/
+find $html -type d -exec chmod 755 {} \;
+find $html -type f -exec chmod 644 {} \;