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>
|
</header>
|
||||||
<section>
|
<section>
|
||||||
<ul>
|
<ul>
|
||||||
===LIST===
|
===PROCEDURE===
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,12 +12,12 @@ for folder in ~/tssr/procedures/*; do
|
||||||
else
|
else
|
||||||
echo found "$name"
|
echo found "$name"
|
||||||
cp "$folder"/procedure*.pdf ./procedures-tssr/procedure_"$name".pdf
|
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
|
||||||
fi
|
fi
|
||||||
done
|
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
|
cp ./procedures-tssr/index.tmp.html ./procedures-tssr/index.html && rm ./procedures-tssr/index.tmp.html
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue