scripts: Update recursive publish script
Still doesn't work properly though. It's a shame that there is no way to
force cargo to update its index.
#!/bin/sh
set -e
-(cd src/common && cargo publish "$@")
-(cd src/svlog/syntax && cargo publish "$@")
-(cd src/svlog && cargo publish "$@")
+(cd src/common && cargo publish "$@") &&
+sleep 10 && (cargo install lazy_static > /dev/null 2>&1 || true)
+(cd src/derive && cargo publish "$@") &&
+sleep 10 && (cargo install lazy_static > /dev/null 2>&1 || true)
+(cd src/svlog/syntax && cargo publish "$@") &&
+sleep 10 && (cargo install lazy_static > /dev/null 2>&1 || true)
+(cd src/svlog && cargo publish "$@") &&
+sleep 10 && (cargo install lazy_static > /dev/null 2>&1 || true)
(cd src/vhdl/syntax && cargo publish "$@")
+sleep 10 && (cargo install lazy_static > /dev/null 2>&1 || true)
(cd src/vhdl && cargo publish "$@")
+sleep 10 && (cargo install lazy_static > /dev/null 2>&1 || true)
(cd src && cargo publish "$@")
