Summary Files Commits Branches @commit @diff @stats
path: root / generate-hooks / make-presentation.sh
diff options
context:
space:
mode:
Commitc58fcbfaa87274b7add52450816dfb478a354be9 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-09-28 15:39:57 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-09-28 15:39:57 +0300
Files5df3cc38e97a7b4940f273e58c7177934ace1673 /generate-hooks/make-presentation.sh
syndamia.com-c58fcbfaa87274b7add52450816dfb478a354be9.tar
syndamia.com-c58fcbfaa87274b7add52450816dfb478a354be9.tar.gz
syndamia.com-c58fcbfaa87274b7add52450816dfb478a354be9.zip
Parent415bddff456082ce36aa1ebeb5b88034303ea225 (diff)
[hooks] Reworked generate hooks to use a string of all files to work on, rather than having to find it
1 files changed, 2 insertions, 2 deletions
-rwxr-xr-xgenerate-hooks/make-presentation.sh4
diff --git a/generate-hooks/make-presentation.sh b/generate-hooks/make-presentation.sh
index e219453..dab3243 100755
--- a/generate-hooks/make-presentation.sh
+++ b/generate-hooks/make-presentation.sh
@@ -26,7 +26,7 @@
# &&/fol Ends (the last started) fol.
if [ -z "$1" ]; then
- echo First parameter must be a path
+ echo First parameter must be string with file paths
exit
fi
@@ -41,7 +41,7 @@ presentation='
presentation=$(echo $presentation | sed 's/\//\\\//g')
# Loop through all HTML files in given directory
-for file in $(find "$1" -type f -wholename "*talks/*.html"); do
+for file in $(echo $1 | grep 'talks'); do
sed -i "s/<p>&#38;&#38;presentation<\/p>/$presentation/g;
s/<p>&#38;&#38;slide<\/p>/<div class=\"slide\">/g;s/<p>&#38;&#38;&#47;slide<\/p>/<\/div>/g;
s/<p>&#38;&#38;centered<\/p>/<div class=\"centered\">/g;s/<p>&#38;&#38;&#47;centered<\/p>/<\/div>/g;