From a1615f27a1d38c0d7ac0049497142af7ef137ac7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 16 Oct 2023 18:17:35 +0300 Subject: (csg) Divided structure into stages --- csg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/csg b/csg index 556254e..f7cfb87 100755 --- a/csg +++ b/csg @@ -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" -- cgit v1.3.1-26-gb76a