Mac binaries
[jabaws.git] / website / archive / binaries / mac / src / disembl / Tisean_3.0.1 / source_f / help.f
1 c===========================================================================
2 c
3 c   This file is part of TISEAN
4
5 c   Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
6
7 c   TISEAN is free software; you can redistribute it and/or modify
8 c   it under the terms of the GNU General Public License as published by
9 c   the Free Software Foundation; either version 2 of the License, or
10 c   (at your option) any later version.
11 c
12 c   TISEAN is distributed in the hope that it will be useful,
13 c   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 c   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 c   GNU General Public License for more details.
16 c
17 c   You should have received a copy of the GNU General Public License
18 c   along with TISEAN; if not, write to the Free Software
19 c   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 c
21 c===========================================================================
22 c   help.f
23 c   Utilities for usage message
24 c   author T. Schreiber (1998)
25 c===========================================================================
26       subroutine whatido(text,iverb)
27       character*72 progname
28       character*(*) text
29
30       call getarg(0,progname)
31       call argdel(0)
32       iverb=igetv(iverb)
33       if(iv_io(iverb).eq.1) then
34          write(istderr(),'()')  
35          write(istderr(),'(a)') 
36      .              "TISEAN 3.0.1 (C) R. Hegger, H. Kantz, T. Schreiber
37      .(1998-2007)"
38          write(istderr(),'()')  
39          write(istderr(),'(a,a,a)') 
40      .      progname(1:index(progname," ")-1), ": ", text
41       endif
42       if(lopt("h",1).eq.1) call usage()
43       end
44
45       subroutine whatineed(text)
46       character*72 progname
47       character*(*) text
48
49       call getarg(0,progname)
50       write(istderr(),'()') 
51       write(istderr(),'(a,a,x,a)') 
52      .   "Usage: ", progname(1:index(progname," ")-1),  text
53       end
54
55       subroutine popt(c,text)
56       character*(*) c,text
57
58       write(istderr(),'(5h    -,a,x,1h<,a,1h>)') c, text
59       end
60
61       subroutine ptext(text)
62       character*(*) text
63
64       write(istderr(),'(3x,a)') text
65       end
66
67       subroutine pout(text)
68       character*(*) text
69
70       write(istderr(),'(8h    -o <,a,a,1h>)') 
71      .   "output file name, just -o means ", text
72       end
73
74       subroutine pall()
75
76       call popt("V","verbosity level (0 = only fatal errors)")
77       call popt("h","show this message")
78       write(istderr(),'()')
79       end
80