-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathver.m4
36 lines (26 loc) · 896 Bytes
/
ver.m4
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
__AUTHOR(⟦Josef Kubin⟧, ⟦2019,12,22⟧)
___DESCR(⟦the project is in constant development; to avoid frustrating innocent users a version number is used⟧)
__REASON(⟦stops source.mc processing if the major version number is different⟧)
# MAJOR change means an incompatible change
# MINOR change means a backward compatible change
# PATCH change means a backward compatible bug fixes
# A → β
define(⟦__TPLVER⟧, ⟦
__TEMPLATE_VERSION($1)
⟧)
# A → β
define(⟦__TEMPLATE_VERSION⟧, ⟦
ifdef(⟦VERSION_MAJOR_$1⟧, ⟦
# prints nothing or a warning
VERSION_MAJOR_$1
⟧, ⟦
ROOT_ERROR(⟦your ‘⟧__file__⟦’ is too different to process⟧)
⟧)
# prints nothing or an informative message
VERSION_MINOR_$1
# the patch number is not tested
⟧)
# A → β
define(⟦VERSION_MAJOR_1⟧, ⟦
# ROOT_INFO(⟦template is under development⟧)
⟧)