Skip to content

Commit cd89143

Browse files
tbrowdercoke
authored andcommitted
add another possibility for location of NQP
1 parent cf46679 commit cd89143

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

util/create-brackets-table.raku

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ if !@*ARGS {
1414
The HLL::Grammar.nqp file as source is updated if it
1515
is not found in /util or the 'refresh' option is used.
1616
17+
You may also define NQP_SRC to use another copy of NQP.
18+
Ensure that path definition ends at 'nqp' as the checked
19+
out copy, e.g., 'NQP_ SRC=/some/path/nqp'.
1720
HERE
1821
exit;
1922
}
@@ -181,6 +184,9 @@ sub get-brackets(:$grammar-file, :$refresh!, :$debug! --> List) {
181184
if %*ENV<NQP_HOME>:exists {
182185
$f = %*ENV<NQP_HOME> ~ $end-path;
183186
}
187+
elsif %*ENV<NQP_SRC>:exists {
188+
$f = %*ENV<NQP_SRC> ~ $end-path;
189+
}
184190
# Otherwise, get it from Github
185191
else {
186192
my $ua = HTTP::UserAgent.new;

0 commit comments

Comments
 (0)