a6e06491e6ac845225f619f776a2466cb24a9729
[ric-plt/lib/rmr.git] / doc / src / man / setup.im
1 .if false
2 ==================================================================================
3    Copyright (c) 2019 Nokia
4    Copyright (c) 2018-2019 AT&T Intellectual Property.
5
6    Licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8    You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
12    Unless required by applicable law or agreed to in writing, software
13    distributed under the License is distributed on an "AS IS" BASIS,
14    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15    See the License for the specific language governing permissions and
16    limitations under the License.
17 ==================================================================================
18 .fi
19
20 .if false
21     Mnemonic:    setup.im
22     Abstract:    Look at environment variables and pull in the correct setup prep
23         imbed file based on the desired output type (when running tfm).
24         Obviously, when running pfm we are always generating postscirpt
25         so this isn't really doing much.
26     Date:        29 July 2019
27 .fi
28
29
30 .if  ! _setup_im
31
32 .gv e LIB lib
33 .if ! lib
34     .dv lib ..
35 .fi
36
37 .** CAUTION:  xfm comparisons are reverse polish so  "a b ="  is true if a == b.
38 .if pfm
39     .im &{lib}/generic_ps.im
40 .ei
41     .gv e OUTPUT_TYPE ot
42     .if "&ot" "txt" =
43         .im &{lib}/txt.im
44     .fi
45     .if "&ot" "rst" =
46         .im &{lib}/rst.im
47     .fi
48     .if "&ot" "markdown" =
49         .im &{lib}/markdown.im
50     .fi
51     .if "&ot" "troff" =
52         .im &{lib}/roff.im
53     .fi
54 .fi
55
56 .gv e GEN_TITLE gen_title
57 .if "&gen_title" "1" =
58         .im gen_title.im
59 .fi
60
61 .dv _setup_im 1
62 .fi