Fix up vendor for... linux?

This commit is contained in:
John Doty 2022-12-20 01:02:23 +00:00
parent b799fedeec
commit 81de013103
114 changed files with 21002 additions and 21002 deletions

View file

@ -1,22 +1,22 @@
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
@REM
@REM This source code is licensed under both the MIT license found in the
@REM LICENSE-MIT file in the root directory of this source tree and the Apache
@REM License, Version 2.0 found in the LICENSE-APACHE file in the root directory
@REM of this source tree.
:: A wrapper to set PYTHONPATH and run a python command with the specified interpreter
:: First arg: paths to library that should be made available
:: Second arg: path to python interpreter
:: Third arg: path to python file that should be run
:: Fourth and onwards: any other arg that should be passed
@echo off
:: See https://stackoverflow.com/questions/382587/how-to-get-batch-file-parameters-from-nth-position-on
setlocal enabledelayedexpansion
set args=;;;;;;%*
set args=!args:;;;;;;%1 =!
set PYTHONPATH=%1;
%args%
endlocal
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
@REM
@REM This source code is licensed under both the MIT license found in the
@REM LICENSE-MIT file in the root directory of this source tree and the Apache
@REM License, Version 2.0 found in the LICENSE-APACHE file in the root directory
@REM of this source tree.
:: A wrapper to set PYTHONPATH and run a python command with the specified interpreter
:: First arg: paths to library that should be made available
:: Second arg: path to python interpreter
:: Third arg: path to python file that should be run
:: Fourth and onwards: any other arg that should be passed
@echo off
:: See https://stackoverflow.com/questions/382587/how-to-get-batch-file-parameters-from-nth-position-on
setlocal enabledelayedexpansion
set args=;;;;;;%*
set args=!args:;;;;;;%1 =!
set PYTHONPATH=%1;
%args%
endlocal

View file

@ -1,25 +1,25 @@
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
@REM
@REM This source code is licensed under both the MIT license found in the
@REM LICENSE-MIT file in the root directory of this source tree and the Apache
@REM License, Version 2.0 found in the LICENSE-APACHE file in the root directory
@REM of this source tree.
@echo off &setlocal
:: arg1 = string to replace
:: arg2 = replacement
:: arg3 = input file
:: arg4 = output file
:: Take all instances of arg1 in arg3 and replace it with arg2
:: The modified string is outputted into arg4, arg3 will not be modified
set BEFORE=%1
set AFTER=%2
set IN=%3
set OUT=%4
(for /f "delims=" %%i in (%IN%) do (
set "line=%%i"
setlocal enabledelayedexpansion
set "line=!line:%BEFORE%=%AFTER%!"
echo(!line!
endlocal
))>"%OUT%"
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
@REM
@REM This source code is licensed under both the MIT license found in the
@REM LICENSE-MIT file in the root directory of this source tree and the Apache
@REM License, Version 2.0 found in the LICENSE-APACHE file in the root directory
@REM of this source tree.
@echo off &setlocal
:: arg1 = string to replace
:: arg2 = replacement
:: arg3 = input file
:: arg4 = output file
:: Take all instances of arg1 in arg3 and replace it with arg2
:: The modified string is outputted into arg4, arg3 will not be modified
set BEFORE=%1
set AFTER=%2
set IN=%3
set OUT=%4
(for /f "delims=" %%i in (%IN%) do (
set "line=%%i"
setlocal enabledelayedexpansion
set "line=!line:%BEFORE%=%AFTER%!"
echo(!line!
endlocal
))>"%OUT%"