diff options
[hooks] Removed bash hook scripts and made awk scripts the way to generate the website
1 files changed, 0 insertions, 16 deletions
| -rwxr-xr-x | generate-hooks/make-descriptions.sh | 16 |
diff --git a/generate-hooks/make-descriptions.sh b/generate-hooks/make-descriptions.sh deleted file mode 100755 index 9895f2e..0000000 --- a/generate-hooks/make-descriptions.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -if [ -z "$1" ]; then - echo First parameter must be string with file paths - exit -fi - -awkloc="$(dirname "$0")/create-description.awk" - -# Loop through all HTML files in given directory -for file in $1; do - description=$(awk -f "$awkloc" $file) - - # Replace all "[DESCRIPTION]" text in current file with what we selected (inside description) - sed -i "s/\[DESCRIPTION\]/$description/g" $file -done |