aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2011-07-07 12:17:04 +0200
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2011-07-07 12:17:04 +0200
commit27a428cd0fae475d7377e1dbe218c064ee217d85 (patch)
treec21f3179406a5d739a04786f78e3051e761bfb77 /examples
parenta03346c06e50d54970747f1e9c056796958df7a7 (diff)
downloadtinycc-27a428cd0fae475d7377e1dbe218c064ee217d85.tar.gz
tinycc-27a428cd0fae475d7377e1dbe218c064ee217d85.tar.bz2
Make ex1.c and ex4.c be executable on any systems
Use /usr/bin/env to make ex1.c and ex4.c on any systems, wherever is installed tcc.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/ex1.c2
-rwxr-xr-xexamples/ex4.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/ex1.c b/examples/ex1.c
index 28139f9..87d6019 100755
--- a/examples/ex1.c
+++ b/examples/ex1.c
@@ -1,4 +1,4 @@
-#! /usr/local/bin/tcc -run
+#!/usr/bin/env tcc -run
#include <tcclib.h>
int main()
diff --git a/examples/ex4.c b/examples/ex4.c
index b33b033..7611910 100755
--- a/examples/ex4.c
+++ b/examples/ex4.c
@@ -1,4 +1,4 @@
-#!./tcc -run -L/usr/X11R6/lib -lX11
+#!/usr/bin/env tcc -run -L/usr/X11R6/lib -lX11
#include <stdlib.h>
#include <stdio.h>
#include <X11/Xlib.h>