Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Commit

Permalink
+ добавлен макрос OSabsPath для кроссплатформенности (вычисляет абс…
Browse files Browse the repository at this point in the history
…олютный путь для ОС, а не для текущей оболочки) (#11)
  • Loading branch information
sergey-s-betke committed Sep 22, 2017
1 parent a7e1301 commit 40fdf78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ITG.MakeUtils/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ winPath = $(shell cygpath -w $1)
# $(call shellPath,sourcePathOrFileName)
shellPath = $(shell cygpath -u $1)

ifeq ($(OS),Windows_NT)
OSabsPath = $(winPath)
else
OSabsPath = $(abspath $1)
endif

# $(call psExecuteCommand,powershellScriptBlock)
psExecuteCommand = \
powershell \
Expand Down

0 comments on commit 40fdf78

Please sign in to comment.