mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
Make schhist try harder to do seamless in-place updates.
- schhist/schhist2web: create index.html in a temporary file and rename it to index.html only at the end. This way, in-place updates work most of the time.
This commit is contained in:
@@ -322,7 +322,8 @@ fi
|
|||||||
# --- Title of the Web page and table header ----------------------------------
|
# --- Title of the Web page and table header ----------------------------------
|
||||||
|
|
||||||
|
|
||||||
index="$out/index.html"
|
index="$out/_index.html"
|
||||||
|
index_final="$out/index.html"
|
||||||
all=
|
all=
|
||||||
{
|
{
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
@@ -469,3 +470,5 @@ cat <<EOF >>"$index"
|
|||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
mv "$index" "$index_final"
|
||||||
|
|||||||
Reference in New Issue
Block a user