basepath=$(cd `dirname $0`; pwd) cd $basepath date > lastpushtime.log git add lastpushtime.log git add ** tag=$(date +1.%Y%m%d.%H%M%S) sed -i "" 's/version = "0.1.0"/version = "'$tag'"/g' Cargo.toml git commit -am "update" git push origin master git tag -a v$tag -m "update" git push origin v$tag cargo publish