Rename LIST to more descriptive PROCEDURE
This commit is contained in:
parent
59accc415f
commit
1ad0cf0c26
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@
|
|||
</header>
|
||||
<section>
|
||||
<ul>
|
||||
===LIST===
|
||||
===PROCEDURE===
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue