-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render a buildozer source runner script for bash and command prompt.
- Loading branch information
Showing
7 changed files
with
102 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
exports_files(["buildozer.template.sh", "buildozer.template.bat"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@echo off | ||
SETLOCAL ENABLEEXTENSIONS | ||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
|
||
set MF=MANIFEST | ||
set PATH=%SYSTEMROOT%\system32 | ||
|
||
REM Lookup the buildozer binary in the runfiles manifest. | ||
for /F "tokens=2* usebackq" %%i in (`findstr.exe /l /c:"%%BUILDOZER_RLOCATIONPATH%% " "%MF%"`) do ( | ||
set BUILDOZER=%%i | ||
set BUILDOZER=!BUILDOZER:/=\! | ||
) | ||
if "!BUILDOZER!" equ "" ( | ||
echo>&2 ERROR: %%BUILDOZER_RLOCATIONPATH%% not found in runfiles. | ||
exit /b 1 | ||
) | ||
|
||
REM Run the newly found full path to the executable within the build's workspace. | ||
cd %BUILD_WORKSPACE_DIRECTORY% | ||
!BUILDOZER! %* | ||
if %ERRORLEVEL% neq 0 ( | ||
exit /b %ERRORLEVEL% | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,8 @@ sh_binary( | |
}, | ||
srcs = ["run_buildozer.sh"], | ||
) | ||
|
||
alias( | ||
name = "buildozer_alias", | ||
actual = "@buildozer", | ||
) |