1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-29 00:54:35 +02: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:
Werner Almesberger 2010-10-06 07:28:01 -03:00
parent 479fff14c9
commit 9816847760

View File

@ -322,7 +322,8 @@ fi
# --- Title of the Web page and table header ----------------------------------
index="$out/index.html"
index="$out/_index.html"
index_final="$out/index.html"
all=
{
cat <<EOF
@ -469,3 +470,5 @@ cat <<EOF >>"$index"
</BODY>
</HTML>
EOF
mv "$index" "$index_final"