Summary Files Commits Branches @commit @diff @stats
path: root / generate.sh
diff options
context:
space:
mode:
1 files changed, 6 insertions, 4 deletions
-rwxr-xr-xgenerate.sh10
diff --git a/generate.sh b/generate.sh
index 3481f23..902bcc5 100755
--- a/generate.sh
+++ b/generate.sh
@@ -15,10 +15,12 @@ ssg src website "Syndamia" "https://syndamia.com"
allnormfiles=$(find './website' -type f -name "*.html")
-for script in $(find "./generate-hooks" -type f -name "*.awk"); do
- for file in $allnormfiles; do
- awk -f "$script" "$file" > tmp && mv -f tmp "$file"
- done
+find './awk-edits' -type f -name "[A-Z]*.awk" -exec cat {} + > /tmp/syndamiadotcom-awk
+find './awk-edits' -type f -name "_*.awk" -exec cat {} + >> /tmp/syndamiadotcom-awk
+find './awk-edits' -type f -name "[a-z]*.awk" -exec cat {} + >> /tmp/syndamiadotcom-awk
+
+for file in $(find './website' -type f -name "*.html"); do
+ awk -f '/tmp/syndamiadotcom-awk' "$file" > tmp && mv -f tmp "$file"
done
#