Summary Files Commits Branches @commit @diff @stats
path: root / generate-hooks / make-titles.sh
diff options
context:
space:
mode:
1 files changed, 0 insertions, 16 deletions
-rwxr-xr-xgenerate-hooks/make-titles.sh16
diff --git a/generate-hooks/make-titles.sh b/generate-hooks/make-titles.sh
deleted file mode 100755
index 4bb70b9..0000000
--- a/generate-hooks/make-titles.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-title.awk"
-
-# Loop through all HTML files in given directory
-for file in $1; do
- title=$(awk -f "$awkloc" $file)
-
- # Replace all "[TITLE]" text in current file with title
- sed -i "s/\[TITLE\]/$title/g" $file
-done