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)
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

index 9cd99f4619e104bdce9cf3b1319961d07984af5a..f83b768abed8045abaf31baea05f86c0f7e652ee 100755 (executable)
--- a/dev-cura
+++ b/dev-cura
@@ -1,3 +1,3 @@
 #!/bin/sh
 ## cura
-PYTHONPATH=$PYTHONPATH:. python ./scripts/linux/cura.py "$@"
+PYTHONPATH=$PYTHONPATH:. exec python ./scripts/linux/cura.py "$@"