mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Add identify-environment scripts
This commit is contained in:
8
go/codeql-tools/identify-environment.cmd
Normal file
8
go/codeql-tools/identify-environment.cmd
Normal file
@@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
SETLOCAL EnableDelayedExpansion
|
||||
|
||||
type NUL && "%CODEQL_EXTRACTOR_GO_ROOT%/tools/%CODEQL_PLATFORM%/go-autobuilder.exe" --identify-environment
|
||||
|
||||
exit /b %ERRORLEVEL%
|
||||
|
||||
ENDLOCAL
|
||||
10
go/codeql-tools/identify-environment.sh
Executable file
10
go/codeql-tools/identify-environment.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
if [ "$CODEQL_PLATFORM" != "linux64" ] && [ "$CODEQL_PLATFORM" != "osx64" ] ; then
|
||||
echo "Automatic build detection for $CODEQL_PLATFORM is not implemented."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$CODEQL_EXTRACTOR_GO_ROOT/tools/$CODEQL_PLATFORM/go-autobuilder" --identify-environment
|
||||
Reference in New Issue
Block a user