提交 c841dd22 authored 作者: David Warde-Farley's avatar David Warde-Farley

A script that can be called from hg hooks to update version.py.

上级 20e3d1ed
#!/bin/sh
# Script to update version.py in response to Mercurial hooks. This should
# not appear in a release tarball.
echo "Updating version.py..."
sed -e "s/^hg_revision.*/hg_revision = '`expr substr $HG_NODE 1 12`'/" theano/version.py >theano/version.py.out && mv theano/version.py.out theano/version.py
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论