Mercurial > hg > qcc
changeset 424:85ab7ee41496
Change default install path from /usr/local to /usr.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 26 Feb 2007 00:37:43 -0500 |
parents | fb849852437e |
children | d844e9e6bba3 |
files | README configure examples/ex1.c examples/ex4.c tcc-doc.texi |
diffstat | 5 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/README Sun Feb 25 22:54:52 2007 -0500 +++ b/README Mon Feb 26 00:37:43 2007 -0500 @@ -21,7 +21,7 @@ - Compile and execute C source directly. No linking or assembly necessary. Full C preprocessor included. -- C script supported : just add '#!/usr/local/bin/tcc -run' at the first +- C script supported : just add '#!/usr/bin/tcc -run' at the first line of your C source, and execute it directly from the command line. @@ -35,7 +35,7 @@ make test make install -By default, tcc is installed in /usr/local/bin. +By default, tcc is installed in /usr/bin. ./configure --help shows configuration options. @@ -48,7 +48,7 @@ include support (especially useful for floppy disks). Of course, you can also use standard headers, although they are slower to compile. -You can begin your C script with '#!/usr/local/bin/tcc -run' on the first +You can begin your C script with '#!/usr/bin/tcc -run' on the first line and set its execute bits (chmod a+x your_script). Then, you can launch the C code as a shell or perl script :-) The command line arguments are put in 'argc' and 'argv' of the main functions, as in
--- a/configure Sun Feb 25 22:54:52 2007 -0500 +++ b/configure Mon Feb 26 00:37:43 2007 -0500 @@ -216,7 +216,7 @@ docdir="$prefix/doc" else if test -z "$prefix" ; then - prefix="/usr/local" + prefix="/usr" fi if test x"$execprefix" = x""; then execprefix="${prefix}"
--- a/examples/ex1.c Sun Feb 25 22:54:52 2007 -0500 +++ b/examples/ex1.c Mon Feb 26 00:37:43 2007 -0500 @@ -1,4 +1,4 @@ -#! /usr/local/bin/tcc -run +#! /usr/bin/tcc -run #include <tcclib.h> int main()
--- a/examples/ex4.c Sun Feb 25 22:54:52 2007 -0500 +++ b/examples/ex4.c Mon Feb 26 00:37:43 2007 -0500 @@ -1,4 +1,4 @@ -#!./tcc -run -L/usr/X11R6/lib -lX11 +#!/usr/bin/tcc -run -L/usr/X11R6/lib -lX11 #include <stdlib.h> /* Yes, TCC can use X11 too ! */ #include <stdio.h>
--- a/tcc-doc.texi Sun Feb 25 22:54:52 2007 -0500 +++ b/tcc-doc.texi Mon Feb 26 00:37:43 2007 -0500 @@ -123,10 +123,10 @@ Scripting: TCC can be invoked from @emph{scripts}, just as shell scripts. You just -need to add @code{#!/usr/local/bin/tcc -run} at the start of your C source: +need to add @code{#!/usr/bin/tcc -run} at the start of your C source: @example -#!/usr/local/bin/tcc -run +#!/usr/bin/tcc -run #include <stdio.h> int main() @@ -173,7 +173,7 @@ In a script, it gives the following header: @example -#!/usr/local/bin/tcc -run -L/usr/X11R6/lib -lX11 +#!/usr/bin/tcc -run -L/usr/X11R6/lib -lX11 #include <stdlib.h> int main(int argc, char **argv) @{