Repository navigation
Expand file tree
/
Copy pathgen2.m4
More file actions
30 lines (24 loc) · 1.58 KB
/
Copy pathgen2.m4
File metadata and controls
30 lines (24 loc) · 1.58 KB
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
m4_divert(-1)
Copyright: 2022 - 2024 Octrooicentrum Nederland
Licensed under the EUPL-1.2 or later.
You may obtain a copy of the licence at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.
Author: Marco de Beurs
m4_define(\\PrintName//, \\m4_ifelse($#, 1,\\$1//, \\$1, PrintName(m4_shift($@))//)//)m4_dnl
m4_define(\\LastArg//, \\m4_ifelse($#, 1, $1, \\LastArg(m4_shift($@))//)//)m4_dnl
m4_define(\\IncludeText//, \\m4_include($1)//)m4_dnl
m4_define(\\IfLevelInclude//, \\m4_ifdef($1\\_//$2, m4_ifelse(m4_eval($# <= 3), 1, \\m4_include($3)//, \\IfLevelInclude//(m4_shift(m4_shift($@)))))//)m4_dnl
m4_define(\\OrLevelInclude//, \\m4_ifdef($1\\_//$2, \\m4_include(LastArg($@))//,m4_ifelse(m4_eval($# > 3), 1, \\OrLevelInclude//(m4_shift(m4_shift($@)))))//)m4_dnl
m4_define(\\IfLevelPrint_//, \\m4_ifdef($1\\_//$2, m4_ifelse(m4_eval($# <= 3), 1, $3, \\IfLevelPrint_//(m4_shift(m4_shift($@)))))//)m4_dnl
m4_define(\\IfLevelPrint//, \\IfLevelPrint_($@)\\//m4_dnl//)m4_dnl
m4_define(\\OrLevelPrint_//, \\m4_ifdef($1\\_//$2, \\LastArg($@)//,m4_ifelse(m4_eval($# > 3), 1, \\OrLevelPrint_//(m4_shift(m4_shift($@)))))//)m4_dnl
m4_define(\\OrLevelPrint//, \\OrLevelPrint_($@)\\//m4_dnl//)m4_dnl
m4_define(\\IfLevelPrintInput//, \\m4_ifdef($1\\_//$2, m4_ifelse(m4_eval($# <= 3), 1,
Input($3)
SelLang(all)
, \\IfLevelPrintInput//(m4_shift(m4_shift($@)))))//)m4_dnl
m4_define(\\OrLevelPrintInput//, \\m4_ifdef($1\\_//$2,
Input(LastArg($@))
SelLang(all)
, m4_ifelse(m4_eval($# > 3), 1, \\OrLevelPrintInput//(m4_shift(m4_shift($@)))))//)m4_dnl
m4_divert(0)m4_dnl
m4_include(versions/GenTemplate().tpl)m4_dnl