Summary Files Commits Branches @commit @diff @stats
path: root / generate.sh
diff options
context:
space:
mode:
1 files changed, 3 insertions, 5 deletions
-rwxr-xr-xgenerate.sh8
diff --git a/generate.sh b/generate.sh
index 9c78eb9..2194fb5 100755
--- a/generate.sh
+++ b/generate.sh
@@ -1,10 +1,10 @@
#!/bin/bash
: ${SRC:=$PWD/src}
-: ${HEADER:=$PWD/html/header.html}
-: ${FOOTER:=$PWD/html/footer.html}
: ${GEN_DIR:=./website}
-: ${META_FILE:=meta.tsv} # Relative to SRC
+: ${HEADER:=$PWD/meta/header.html}
+: ${FOOTER:=$PWD/meta/footer.html}
+: ${META:=$PWD/meta/meta.tsv}
# 0 Fix hardlinks {{{
while read -r folder
@@ -27,9 +27,7 @@ EOF
# 1. Dunbar source to HTML {{{
mkdir -p "$GEN_DIR"
cp -a "$SRC/." "$GEN_DIR"
- rm "$GEN_DIR/$META_FILE" "$GEN_DIR/."*
- META="$SRC/$META_FILE"
AWK="mawk"
export HEADER FOOTER META GEN_DIR AWK