diff options
1 files changed, 8 insertions, 2 deletions
| -rwxr-xr-x | generate-dev.sh | 10 |
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 |