enable_invocation_log = false,
default_projects_server = "projects",
default_project_version = "2",
- -- where to fetch e2 in e2-install-e2
- default_e2 = {
- local_branch = "master",
- local_tag = "^",
- local_syntax = buildconfig.SYNTAX[1],
- },
local_e2_branch = nil,
local_e2_tag = nil,
--- command line arguments that influence global settings are stored here
local release_id = string.format("%s\n", p.name) -- use the name for now
local version = string.format("%s\n", p.version)
local e2version = string.format("%s\n", p.e2version)
-local syntax = string.format("%s\n", e2lib.default_e2.local_syntax)
+local syntax = string.format("%s\n", buildconfig.SYNTAX[1])
local empty = ""
files = {
{ filename = ".e2/.keep", content=empty },
e2_server = "projects",
e2_location = "e2factory.git",
e2_base = ".",
- e2_branch = "e2factory-2.3",
- e2_tag = "e2factory-2.3.0",
+ e2_branch = "@DEFAULT_LOCAL_BRANCH@",
+ e2_tag = "@DEFAULT_LOCAL_TAG@",
default_extensions = {
},
},
# list the latest one first
SYNTAX = 2_3_0 2_2_0
+# when creating a project a current set of local tools is requested
+DEFAULT_LOCAL_BRANCH = master
+DEFAULT_LOCAL_TAG = $(TAG)
+export DEFAULT_LOCAL_BRANCH DEFAULT_LOCAL_TAG
+
DETECT_TOOL = $(TOPLEVEL)/scripts/detect_tool
PROJECTDIR ?= $(shell cd $(TOPLEVEL);scripts/e2-locate-project-root 2>/dev/null)
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"
+test -n "$DEFAULT_LOCAL_BRANCH" || die "DEFAULT_LOCAL_BRANCH not set"
+test -n "$DEFAULT_LOCAL_TAG" || die "DEFAULT_LOCAL_TAG not set"
sed -e s,"@E2_E2DATA@","$E2DATA",g \
-e s,"@LIBDIR@","$LIBDIR",g \
-e s,"@LIBEXECDIR@","$LIBEXECDIR",g \
-e s,"@TAR_TOOL@","$TAR_TOOL",g \
-e s,"@CHOWN_TOOL@","$CHOWN_TOOL",g \
-e s,"@RM_TOOL@","$RM_TOOL",g \
+ -e s,"@DEFAULT_LOCAL_BRANCH@","$DEFAULT_LOCAL_BRANCH",g \
+ -e s,"@DEFAULT_LOCAL_TAG@","$DEFAULT_LOCAL_TAG",g \
-e s,"@E2_PREFIX@","$PREFIX",g $1 >$2 \