@echo 'SYSCONFDIR="$(SYSCONFDIR)"' >>$@
@echo 'E2="$(E2)"' >>$@
@echo 'LUA="$(LUA)"' >>$@
- @echo 'E2_SYNTAX="$(E2_SYNTAX)"' >>$@
@echo 'MAJOR="$(MAJOR)"' >>$@
@echo 'MINOR="$(MINOR)"' >>$@
@echo 'PATCHLEVEL="$(PATCHLEVEL)"' >>$@
@echo 'EXTRAVERSION="$(EXTRAVERSION)"' >>$@
@echo 'VERSION="$(VERSION)"' >>$@
@echo 'VERSIONSTRING="$(VERSIONSTRING)"' >>$@
+ @echo 'SYNTAX={' >>$@
+ @for x in $(SYNTAX) ; do echo " \"$$x\"," ; done >>$@
+ @echo '}' >>$@
all: e2commit buildconfig.lua
$(MAKE) -C lua
default_e2 = {
local_branch = "master",
local_tag = "^",
- local_syntax = buildconfig.E2_SYNTAX,
+ local_syntax = buildconfig.SYNTAX[1],
},
local_e2_branch = nil,
local_e2_tag = nil,
e2tool = e2lib.module("e2tool")
--- store supported config_syntax versions here, the newest one must be listed
--- first, to maintain correct error messages
-
-local config_syntax_compat = {
- buildconfig.E2_SYNTAX, -- keep this one, it holds the current syntax.
- "2_2_0",
-}
-
-- Information gathering and inquiry
--
-- e2tool.collect_project_info([PATH]) -> INFO
end
-- check for configuration compatibility
- info.config_syntax_compat = config_syntax_compat
+ info.config_syntax_compat = buildconfig.SYNTAX
info.config_syntax_file = ".e2/syntax"
rc, re = e2tool.check_config_syntax_compat(info)
if not rc then
VERSIONSTRING = $(COMMIT)
endif
+# list the latest one first
+SYNTAX = 2_3_0 2_2_0
+
DETECT_TOOL = $(TOPLEVEL)/scripts/detect_tool
PROJECTDIR ?= $(shell cd $(TOPLEVEL);scripts/e2-locate-project-root 2>/dev/null)
-E2_SYNTAX = $(shell cat $(TOPLEVEL)/syntax)
E2DATA = /mnt/e2data
-export E2DATA PROJECTDIR E2_SYNTAX
+export E2DATA PROJECTDIR
DESTDIR =
PREFIX = /usr/local
}
set -e
-test -n "$E2_SYNTAX" || die "E2_SYNTAX not set"
test -n "$PREFIX" || die "PREFIX not set"
test -n "$BINDIR" || die "BINDIR not set"
test -n "$LIBDIR" || die "LIBDIR not set"
test -n "$TAR_TOOL" || die "TAR_TOOL not set"
test -n "$CHOWN_TOOL" || die "CHOWN_TOOL not set"
test -n "$RM_TOOL" || die "RM_TOOL not set"
-sed -e s/"@E2_SYNTAX@"/"$E2_SYNTAX"/g \
- -e s,"@E2_E2DATA@","$E2DATA",g \
+sed -e s,"@E2_E2DATA@","$E2DATA",g \
-e s,"@LIBDIR@","$LIBDIR",g \
-e s,"@LIBEXECDIR@","$LIBEXECDIR",g \
-e s,"@BINDIR@","$BINDIR",g \