-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
119 lines (84 loc) · 2.53 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Makefile
DDATE!= date +%Y-%m-%d
QSPATH!= grep qspath: wiki-config.yml | cut -d '"' -f2
FILTER!= grep sources: wiki-config.yml | cut -d '"' -f2
SRC!= ls *.wiki | grep -E '${FILTER}'
ACTORS_HTML!= ls actors/*.html
ACTORS_HTMLS= ${ACTORS_HTML:S/.html/.html,/g:S/,$//}
ACTORS_PDF= ${ACTORS_HTML:S/html/pdf/g}
ACTORS_LIST= ${ACTORS_HTML:S/.html//g}
all: numbered-qscript.txt out.txt \
all.wiki plain.wiki clothes.pdf all.pdf \
puppet_pool.csv tidy.html \
actors/run.log actors
.if exists(media/availability.csv)
all: availability.txt
.endif
.if exists(test.html)
all: test.txt test.wdiff
.endif
pre: all.wiki puppet_pool.csv
numbered-qscript.txt: qscript.txt
cat -n qscript.txt > numbered-qscript.txt
#hs-qscript.txt: qscript.txt Makefile
# sed \
# -e 's|techProp|handProp|g' \
# -e 's|TechProp|HandProp|g' \
# qscript.txt > hs-qscript.txt
out.txt: out.html
lynx -dump -display_charset=utf-8 -nonumbers -width=5000 out.html |\
fgrep -v 'file:' >out.txt
availability.txt: availability.html
lynx -dump -display_charset=utf-8 -nonumbers -width=5000 availability.html |\
fgrep -v 'file:' >availability.txt
test.txt: test.html
lynx -dump -display_charset=utf-8 -nonumbers -width=5000 test.html |\
fgrep -v 'file:' > test.txt
test.wdiff: out.html test.html
echo 'wdiff [-out.html-] {+test.html+}' > test.wdiff
-wdiff -n out.html test.html >> test.wdiff
clothes.pdf: makepdf.sh makepdf.sed clothes.html
./makepdf.sh clothes.pdf
all.pdf: makepdf.sh makepdf.sed all.html
./makepdf.sh all.pdf
all.ps: all.pdf
pdf2ps all.pdf
actors/run.log: highlite-actors.rb all.html wiki-actors.json
./highlite-actors.rb
.for actor in ${ACTORS_LIST}
${actor}.pdf: makepdf.sh makepdf.sed ${actor}.html
./makepdf.sh ${actor}.pdf
.endfor
actors:: ${ACTORS_PDF}
all.wiki: makeall.sh header.wiki index.wiki
./makeall.sh > all.wiki
plain.wiki: Makefile all.wiki
sed -e '/^@media (prefers-color-scheme/,/^}/d' all.wiki > plain.wiki
puppet_pool.csv: puppet_pool.rb puppet_pool.wiki media/smileys.txt
./puppet_pool.rb
./get-media.sh
all.html: ${SRC} UPLOAD/all.wiki
./fetch-wiki.rb "${QSPATH}:all.html"
tidy.html: out.html
-tidy4 -wrap 5000 out.html > tidy.html
do::
diff -bu OLD/ . | grep -v '^Only in' | less
du::
diff -bu UPLOAD/ . | grep -v '^Only in' | less
dt::
diff -biu out.txt test.txt | less
cop::
rubocop *.rb
save-cop::
rubocop --auto-gen-config *.rb
doc::
rdoc -V *.rb
hold::
touch hold.txt
unhold:
rm -f hold.txt
dump:
/media/furry/fp/bin/dump-json.rb wiki_actors.json
save::
rsync -a OLD/ all.html all.html.orig HISTORY/${DDATE}/
# eof