diff --git a/README.md b/README.md index 40d95bb1..a2e85cad 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The other backends are experimental. Installing ---------- -* [Debian Package](https://github.com/rusthon/Rusthon/releases/download/0.9.9q/rusthon_0.9.4_all.deb) +* [Debian Package](https://github.com/rusthon/Rusthon/releases/download/0.9.9s/rusthon_0.9.6_all.deb) * Fedora package comming soon If you want to stay in sync with the git-repo, use the `install-dev.sh` script instead of the Debian or Fedora package. note: `install-dev.sh` just creates a symbolic link `transpile` that points to the current location of `rusthon.py`. diff --git a/make-linux-packages.sh b/make-linux-packages.sh index 3cae96e3..f42f7dbc 100755 --- a/make-linux-packages.sh +++ b/make-linux-packages.sh @@ -12,11 +12,11 @@ chmod +x rusthon.py sudo ln --symbolic --force /usr/lib/rusthon/rusthon.py /usr/bin/transpile ## debian -fpm -s dir -t deb -a all -m "brett hartshorn " -n rusthon -v 0.9.5 /usr/bin/transpile ./rusthon.py=/usr/lib/rusthon/rusthon.py ./src=/usr/local/lib/rusthon/ +fpm -s dir -t deb -a all -m "brett hartshorn " -n rusthon -v 0.9.6 /usr/bin/transpile ./rusthon.py=/usr/lib/rusthon/rusthon.py ./src=/usr/local/lib/rusthon/ ## check contents of deb -dpkg -c rusthon_0.9.5_all.deb +dpkg -c rusthon_0.9.6_all.deb ## fedora -- requires rpmbuild -- which is not available in debian? -fpm -s dir -t rpm -a noarch -n rusthon -v 0.9.5 /usr/bin/transpile ./rusthon.py=/usr/lib/rusthon/rusthon.py ./src=/usr/local/lib/rusthon/ +fpm -s dir -t rpm -a noarch -n rusthon -v 0.9.6 /usr/bin/transpile ./rusthon.py=/usr/lib/rusthon/rusthon.py ./src=/usr/local/lib/rusthon/ diff --git a/regtests/loop/interval_loop.py b/regtests/loop/interval_loop.py new file mode 100644 index 00000000..84ac4f1d --- /dev/null +++ b/regtests/loop/interval_loop.py @@ -0,0 +1,21 @@ +from runtime import * +''' +timeout decorator with loop +''' + +counter = 0 + +def main(): + @timeout(1) + def foo(): + print 'foo' + + @timeout(1, loop=True) + def bar(): + global counter + print 'bar:'+counter + counter += 1 + if counter > 5: + process.exit() + +main()