mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 06:08:03 +08:00
[jsonnet] Fix white-space-path issue. (#5862)
This commit is contained in:
parent
9e8db15b96
commit
89fd63fb4b
@ -1,3 +1,3 @@
|
||||
Source: jsonnet
|
||||
Version: 2018-11-01-1
|
||||
Version: 2018-11-01-2
|
||||
Description: Jsonnet - The data templating language
|
||||
|
@ -10,14 +10,14 @@ vcpkg_from_github(
|
||||
|
||||
if (WIN32)
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND Powershell -Command "((Get-Content -Encoding Byte ${SOURCE_PATH}/stdlib/std.jsonnet) -join ',') + ',0' > ${SOURCE_PATH}/core/std.jsonnet.h"
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
COMMAND Powershell -Command "((Get-Content -Encoding Byte \"${SOURCE_PATH}/stdlib/std.jsonnet\") -join ',') + ',0' > \"${SOURCE_PATH}/core/std.jsonnet.h\""
|
||||
WORKING_DIRECTORY "${SOURCE_PATH}"
|
||||
LOGNAME "std.jsonnet"
|
||||
)
|
||||
else()
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND bash -c "((od -v -Anone -t u1 ${SOURCE_PATH}/stdlib/std.jsonnet | tr ' ' '\\n' | grep -v '^$' | tr '\\n' ',' ) && echo '0') > ${SOURCE_PATH}/core/std.jsonnet.h"
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
COMMAND bash -c "((od -v -Anone -t u1 \"${SOURCE_PATH}/stdlib/std.jsonnet\" | tr ' ' '\\n' | grep -v '^$' | tr '\\n' ',' ) && echo '0') > \"${SOURCE_PATH}/core/std.jsonnet.h\""
|
||||
WORKING_DIRECTORY "${SOURCE_PATH}"
|
||||
LOGNAME "std.jsonnet"
|
||||
)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user