Skip to content

Commit

Permalink
Merge f02884d into 71a1ff1
Browse files Browse the repository at this point in the history
  • Loading branch information
hhslepicka committed Apr 30, 2021
2 parents 71a1ff1 + f02884d commit 0a120f7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/template/base/top/configure/CONFIG
Expand Up @@ -13,6 +13,11 @@ ifdef T_A
-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(T_A)
endif

# Check for proper EPICS_BASE
ifneq (file,$(origin EPICS_BASE))
$(error EPICS_BASE must be defined in configure/RELEASE or a similar file or it will not be correctly read by convertRelease.pl!)
endif

CONFIG = $(RULES)/configure
include $(CONFIG)/CONFIG

Expand Down
5 changes: 5 additions & 0 deletions src/template/ext/top/configure/CONFIG
Expand Up @@ -17,6 +17,11 @@ ifdef T_A
-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(T_A)
endif

# Check for proper EPICS_BASE
ifneq (file,$(origin EPICS_BASE))
$(error EPICS_BASE must be defined in configure/RELEASE or a similar file or it will not be correctly read by convertRelease.pl!)
endif

CONFIG = $(RULES)/configure
include $(CONFIG)/CONFIG

Expand Down
6 changes: 6 additions & 0 deletions src/tools/convertRelease.pl
Expand Up @@ -113,6 +113,9 @@ sub HELP_MESSAGE {
#
sub releaseTops {
my @includes = grep !m/^ (TOP | TEMPLATE_TOP) $/x, @apps;
if (!@includes) {
die "No variables defined in RELEASE*s";
}
print join(' ', @includes), "\n";
}

Expand Down Expand Up @@ -256,6 +259,9 @@ sub checkRelease {
}

my @modules = grep(!m/^(RULES|TOP|TEMPLATE_TOP)$/, @apps);
if (!@modules) {
die "No variables defined in RELEASE*s";
}
my $app = shift @modules;
my $latest = AbsPath($macros{$app});
my %paths = ($latest => $app);
Expand Down

0 comments on commit 0a120f7

Please sign in to comment.