repo.or.cz
/
llpp.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add anki deck to documentation
[llpp.git]
/
misc
/
wikipedia
/
wpget
blob
c2510e0435c636581ecebbef4aab0641c1bbee29
1
#!/bin/sh
2
set -e
3
4
url
=
"
$1
"
5
test -z
"
$2
"
&& {
6
u
=
$
(
python3
-c
"import urllib.parse; print (urllib.parse.unquote ('
$url
'))"
)
7
out
=
$
(
echo
"
${u##*wiki/}
.pdf"
|
tr
/
_
)
8
}
|| out
=
$2
9
10
td
=
$
(
dirname
$
(
readlink
-f
"
$0
"
))
11
12
prince \
13
--no-author-style
\
14
--javascript
\
15
--media
screen \
16
-s
file
://
$td
/
wiki2.css
"
$url
"
-o
"
$out
"