diff options
1 files changed, 7 insertions, 0 deletions
| -rwxr-xr-x | csg | 7 |
@@ -21,9 +21,14 @@ update_timestamps="" if [ ! -f "$TIMESTAMPS" ] || [ "$headc" != "$(head -1 "$TIMESTAMPS")" ]; then update_timestamps="1" echo "$headc" > "$TIMESTAMPS" +### Stage 0 +### Create timestamps.txt file, if necessary + fi # Copy from SOURCE to OUTPUT +### Stage 1 +### Copy everything from SOURCE to OUTPUT (cd "$SOURCE" && \ find . -type f -not -name "\.*" -not -name '_header.html' -not -name '_footer.html' | \ cpio -pdu "$OUTPUT") @@ -32,6 +37,8 @@ find "$OUTPUT" -type f -name "*index.md" -links +1 | while read -r file; do mv "$file" "${file%md}html" done +### Stage 2 +### Transforming Markdown transform-file() { local file="$1" local outf="${file%md}html" |
