Summary Files Commits Branches @commit @diff @stats
path: root / generate-dev.sh
diff options
context:
space:
mode:
Commita599a9303b2734e1c46297f6f0d394f3203121e7 (patch)
Author
 Kamen Mladenov <kamen@syndamia.com>
2023-04-18 14:27:47 +0000
Committer
 Kamen Mladenov <kamen@syndamia.com>
2023-04-18 14:27:47 +0000
Files03ae7d486be6a69d81c40b1413cce831af3c52d7 /generate-dev.sh
syndamia.com-a599a9303b2734e1c46297f6f0d394f3203121e7.tar
syndamia.com-a599a9303b2734e1c46297f6f0d394f3203121e7.tar.gz
syndamia.com-a599a9303b2734e1c46297f6f0d394f3203121e7.zip
Parentc814bfa2635b2aa57867edac60097fdb3e47ad21 (diff)
Parent8edab5edc351724fa05c9cce7e64e74197e2a41d (diff)
Merge branch 'blog/seoc' into 'master'
Blog/Sane explanation of compilers See merge request Syndamia/syndamiadotcom!7
1 files changed, 8 insertions, 2 deletions
-rwxr-xr-xgenerate-dev.sh10
diff --git a/generate-dev.sh b/generate-dev.sh
index 0911fce..df462f9 100755
--- a/generate-dev.sh
+++ b/generate-dev.sh
@@ -23,7 +23,8 @@ endTimer () {
combine() {
startTimer
- 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
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
endTimer "generation of /tmp/syndamiadotcom-awk"
@@ -36,10 +37,15 @@ combine() {
}
separated() {
+ libs=""
+ for l in $(find './awk-edits' -type f -name "#*.awk"); do
+ libs+=" -f $l "
+ done
+
for i in $(find './awk-edits' -type f -name "[A-Z]*.awk") $(find './awk-edits' -type f -name "[a-z]*.awk"); do
startTimer
for file in $(find '/var/www/synd/' -type f -name "*.html"); do
- awk -f "$i" -f './awk-edits/_print.awk' "$file" > tmp && mv -f tmp "$file"
+ awk $libs -f "$i" -f './awk-edits/_print.awk' "$file" > tmp && mv -f tmp "$file"
done
endTimer "$i"
done