Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commita1615f27a1d38c0d7ac0049497142af7ef137ac7 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-10-16 18:17:35 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-10-16 18:17:35 +0300
Files0c67f74959ebd3b85163371672f0195d3597af95
csg-a1615f27a1d38c0d7ac0049497142af7ef137ac7.tar
csg-a1615f27a1d38c0d7ac0049497142af7ef137ac7.tar.gz
csg-a1615f27a1d38c0d7ac0049497142af7ef137ac7.zip
Parent29cfbf50f94c7326bc8f66b6ff0fbe6e15a08ce0 (diff)
(csg) Divided structure into stages
1 files changed, 7 insertions, 0 deletions
-rwxr-xr-xcsg7
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"