chiark / gitweb /
dev-cura: Make into a proper script
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Feb 2016 16:08:02 +0000 (16:08 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Feb 2016 18:32:03 +0000 (18:32 +0000)
commit2b59438d3317b9046fdb5c9563ea0321d4808149
tree43cb51579a6d29a6cafe1a43fdf3d9e2fb9b103e
parent1cce2ae5e41c8305c81456eeaf625c172d76a0b1
dev-cura: Make into a proper script

Firstly, move the #! to the top, as the kernels require (otherwise if
you are lucky your shell can run it, but wrapper programs can't).

Secondly, use `exec' to have dev-cura exec cura without forking.

With these two changes, it is easier to strace dev-cura: you can run
  strace -ot ./dev-cura
rather than
  strace -fot bash ./dev-cura

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dev-cura