Make examples' shebang use target tcc bindir path

Use @BINDIR@ in shebang of examples to put the right path on the target
system. That is, use #!/usr/local/bin/tcc if tcc is installed in /usr/local/bin
and #!/usr/bin/tcc if tcc is installed in /usr/bin/tcc.
This commit is contained in:
Thomas Preud'homme
2011-06-18 00:24:47 +02:00
parent 3511e6e2a8
commit cb2138f8b0
4 changed files with 14 additions and 7 deletions

8
examples/ex1.c.template Normal file
View File

@ -0,0 +1,8 @@
#! @BINDIR@/tcc -run
#include <tcclib.h>
int main()
{
printf("Hello World\n");
return 0;
}