summaryrefslogtreecommitdiff
path: root/manual/format-html
blob: 836ad9900a2a4f478e1304a82bb8a5f51d1053d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -eu

OUTPUT="$1"
TITLE="$2"
AUTHOR="$3"
VERSION="$4"
shift 4

cat > 000.mdwn <<EOF
% $TITLE
% $AUTHOR
% $VERSION
EOF

pandoc  -H ../obnam.css --smart --toc --chapters --number-sections \
    --standalone --self-contained -V geometry:lettersize \
    -o "$OUTPUT" 000.mdwn "$@"
rm -f 000.mdwn