Skip to content

Commit

Permalink
Parameterized goals #115 attempt fixing tests macos 10.15 awk version…
Browse files Browse the repository at this point in the history
… 20070501
  • Loading branch information
xonixx committed Jan 26, 2023
1 parent dbdf646 commit cf1c470
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
on: [ "push", "pull_request" ]
on:
- "push"
# - "pull_request"

name: "Run tests"

Expand Down
10 changes: 7 additions & 3 deletions makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function makesure( i) {
else if ("@use_lib" == $1) handleUseLib()
else if ($1 ~ /^@/) addError("Unknown directive: " $1)
else handleCodeLine($0)
for (i=1;i<10;i++) $i=""
for (i=1;i<10;i++) $i="" # only for macos 10.15 awk version 20070501
}
doWork()
realExit(0)
Expand Down Expand Up @@ -256,7 +256,11 @@ function calcGlob(goalName, pattern, script, file) {
quicksort(GlobFiles,0,arrLen(GlobFiles)-1)
}

function parsePriv() { if ("@private" != $NF) return 0; $NF=""; NF--; return 1 }
function parsePriv() {
if ("@private" != $NF) return 0
$NF="" # only for macos 10.15 awk version 20070501
NF--
return 1 }

function handleGoalGlob( goalName,globAllGoal,globSingle,priv,i,pattern,nfMax) {
started("goal_glob")
Expand Down Expand Up @@ -859,7 +863,7 @@ function reparseCli( res,i,err) {
addError("Syntax error: " err)
die(Error)
} else {
$0=""
$0="" # only for macos 10.15 awk version 20070501
for (i=NF=0; i in res; i++) {
$(++NF)=res[i]
Quotes[NF]=res[i,"quote"]
Expand Down

0 comments on commit cf1c470

Please sign in to comment.