File: README

package info (click to toggle)
clig 1.1.3-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 328 kB
  • ctags: 72
  • sloc: tcl: 1,459; ansic: 253; makefile: 109; sh: 60; csh: 52
file content (60 lines) | stat: -rw-r--r-- 2,496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

clig -- Command Line Interface Generator
        (C) 1995,1996,1997,1998,1999 kir@iitb.fhg.de (Harald Kirsch)

    This program is free software; you can redistribute it and/or          
    modify it under the terms of the GNU General Public License as         
    published by the Free Software Foundation; either version 2 of the     
    License, or (at your option) any later version.                        
                                                                           
    This program is distributed in the hope that it will be useful,        
    but WITHOUT ANY WARRANTY; without even the implied warranty of         
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          
    GNU General Public License for more details.                           
                                                                           
    You should have received a copy of the GNU General Public License      
    along with this program; if not, write to the Free Software            
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA               
    02111-1307  USA 

What is clig? --- An excerpt from the manual page:
       Clig  uses  the  description in clifile to generate C-code
       for a function

              Cmdline *parseCmdline(int argc, char **argv)

       which parses the command-line of a typical  C-program  and
       returns  the  result  in a structure of type Cmdline. [...]
       Besides parseCmdline(), the function

              void usage(void)

       is generated  and  will  be  called  by  the  command-line
       parser,  if  the command line contains obvious errors. One
       of the main reasons to use clig are  maybe  the  automatic
       generation  of  a  usage()-function which is always up-to-
       date with respect to the options  actually  understood  by
       the program.
 
How to install:

After unpacking the file clig.<version>.tar.gz there is a directory
called `clig' containing this file.

--> Edit the top of `makefile' to suit your preferences. In particular
    you want to edit the variables `prefix' and LROOT.

--> Run 'make install'.
    Actually, there is nothing to `make', since clig does not contain
    C-code to be compiled. The `makefile' was however included to
    keep the similarities to other packages.

--> Compile and run the trivial example program in the directory
    `example'.

--> Read the manual page.

Bug reports and questions to kir@iitb.fhg.de.