Rename LIST to more descriptive PROCEDURE

This commit is contained in:
flyingscorpio@arch-desktop 2021-01-03 23:30:22 +01:00
parent 59accc415f
commit 1ad0cf0c26
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@
</header>
<section>
<ul>
===LIST===
===PROCEDURE===
</ul>
</section>
</div>

View file

@ -12,12 +12,12 @@ for folder in ~/tssr/procedures/*; do
else
echo found "$name"
cp "$folder"/procedure*.pdf ./procedures-tssr/procedure_"$name".pdf
sed -i "s@===LIST===@<li><p><a href='./procedure_${name}.pdf'>procedure_${name}.pdf</a></p></li>\n===LIST===@g" ./procedures-tssr/index.tmp.html
sed -i "s@===PROCEDURE===@<li><p><a href='./procedure_${name}.pdf'>procedure_${name}.pdf</a></p></li>\n===PROCEDURE===@g" ./procedures-tssr/index.tmp.html
fi
fi
done
sed -i "s/===LIST===//g" ./procedures-tssr/index.tmp.html
sed -i 's/===PROCEDURE===//g' ./procedures-tssr/index.tmp.html
cp ./procedures-tssr/index.tmp.html ./procedures-tssr/index.html && rm ./procedures-tssr/index.tmp.html