blob: c75cc8c85011db6ed943c9ae337419ae8411b3ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
CONFIG=$1
CONTENT_DIR=$2
OUTPUT_DIR=$3
cat $1 |
jq -r '.[] | .content, .header, .url' |
while read CONTENT_FILE
do
read HEADER
read OUTPUT_FILE
if [ -n "$CONTENT_FILE" ]
then
python3 scripts/statics-compile.py $CONTENT_DIR/$CONTENT_FILE "$HEADER" > $OUTPUT_DIR/$OUTPUT_FILE
python3 scripts/menus-write.py $OUTPUT_DIR/$OUTPUT_FILE $OUTPUT_DIR/.menu.html
fi
done
|