Skip to content

Commit

Permalink
Use gawk's gettimeofday if available #57 : fix for mawk
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Sep 26, 2021
1 parent aafd632 commit 2ac3f1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makesurefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function trim(s) { sub(/^[ \t\r\n]+/, "", s); sub(/[ \t\r\n]+$/, "", s); return
in_begin && /^}/ { in_begin=0 }
in_begin && $1 ~ /^split/ { next }
{ gsub("\\s*#.+$", ""); gsub(Q, Q "\\" Q Q); if (trim($0)) print}' makesure.awk
echo \''$X Makesurefile "$@"'
echo \''"$X" Makesurefile "$@"'
} > makesure_stable

@goal default
Expand Down
2 changes: 1 addition & 1 deletion makesure_stable
Original file line number Diff line number Diff line change
Expand Up @@ -585,4 +585,4 @@ function isDir(path) { return ok("test -d " quoteArg(path)) }
function rm(f) { system("rm " quoteArg(f)) }
function quoteArg(a) { gsub("'\''", "'\''\\'\'''\''", a); return "'\''" a "'\''" }
function trim(s) { sub(/^[ \t\r\n]+/, "", s); sub(/[ \t\r\n]+$/, "", s); return s }
'$X Makesurefile "$@"
'"$X" Makesurefile "$@"

0 comments on commit 2ac3f1e

Please sign in to comment.