Skip to content

Commit

Permalink
Merge pull request #1103 from tdesveauxPKFX/fix-makefile-shelltype
Browse files Browse the repository at this point in the history
gmake*: fix shell type identification
  • Loading branch information
tdesveauxPKFX committed Jun 3, 2018
2 parents d6dfaa3 + 7ba491c commit 9c6e195
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions modules/gmake/gmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,9 @@


function make.shellType()
_p('SHELLTYPE := msdos')
_p('ifeq (,$(ComSpec)$(COMSPEC))')
_p(' SHELLTYPE := posix')
_p('endif')
_p('ifeq (/bin,$(findstring /bin,$(SHELL)))')
_p(' SHELLTYPE := posix')
_p('SHELLTYPE := posix')
_p('ifeq (.exe,$(findstring .exe,$(ComSpec)))')
_p('\tSHELLTYPE := msdos')
_p('endif')
_p('')
end
Expand Down
9 changes: 3 additions & 6 deletions modules/gmake2/gmake2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,9 @@


function gmake2.shellType()
_p('SHELLTYPE := msdos')
_p('ifeq (,$(ComSpec)$(COMSPEC))')
_p(' SHELLTYPE := posix')
_p('endif')
_p('ifeq (/bin,$(findstring /bin,$(SHELL)))')
_p(' SHELLTYPE := posix')
_p('SHELLTYPE := posix')
_p('ifeq (.exe,$(findstring .exe,$(ComSpec)))')
_p('\tSHELLTYPE := msdos')
_p('endif')
_p('')
end
Expand Down

0 comments on commit 9c6e195

Please sign in to comment.