From f0d5a74bcd61cc1fc2a11d06c1f324a9205256a5 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 18 May 2003 18:11:06 +0000 Subject: automatic man page generation from tcc-doc.texi --- tcc-doc.texi | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'tcc-doc.texi') diff --git a/tcc-doc.texi b/tcc-doc.texi index bc7aefa..830f40b 100644 --- a/tcc-doc.texi +++ b/tcc-doc.texi @@ -66,12 +66,15 @@ generation (@pxref{Libtcc}). @section Quick start @example -usage: tcc [-v] [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym] - [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static] - [infile1 infile2...] [-run infile args...] +@c man begin SYNOPSIS +usage: tcc [@option{-v}] [@option{-c}] [@option{-o}@var{outfile}] [@option{-B}@var{dir}] [@option{-bench}] [@option{-I}@var{dir}] [@option{-D}@var{sym[=val]}] [@option{-U}@var{sym}] + [@option{-g}] [@option{-b}] [@option{-bt}@var{N}] [@option{-L}@var{dir}] [@option{-l}@var{lib}] [@option{-shared}] [@option{-static}] + [@var{infile1} @var{infile2}@dots{}] [@option{run} @var{infile} @var{args}@dots{}] +@c man end @end example @noindent +@c man begin DESCRIPTION TCC options are a very much like gcc options. The main difference is that TCC can also execute directly the resulting program and give it runtime arguments. @@ -120,7 +123,7 @@ 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: @example -#!/usr/local/bin/tcc +#!/usr/local/bin/tcc -run #include int main() @@ -129,11 +132,13 @@ int main() return 0; @} @end example +@c man end @section Option summary General Options: +@c man begin OPTIONS @table @option @item -v Display current TCC version. @@ -224,6 +229,22 @@ Display N callers in stack traces. This is useful with @option{-g} or Note: GCC options @option{-Ox}, @option{-Wx}, @option{-fx} and @option{-mx} are ignored. +@c man end + +@ignore + +@setfilename tcc +@settitle Tiny C Compiler + +@c man begin SEEALSO +gcc(1) +@c man end + +@c man begin AUTHOR +Fabrice Bellard +@c man end + +@end ignore @chapter C language support -- cgit v1.3.1