forked from jkubin/m4root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathver.m4
32 lines (23 loc) · 789 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
__HEADER([Josef Kubin], [2019/12/22], [root_cz])
___DESCR([the HTML template is under development; to avoid frustrating innocent users a version number is used])
___POINT([stops document 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([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_$2
# the patch number is not tested
])
# FIXME: domyslet
# A → β
define([VERSION_MAJOR_0], [
# ROOT_INFO([template is under development])
])