mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
codeql-go merge prep: move into go/ directory
This commit is contained in:
1
go/tools/bootstrap.cmd
Normal file
1
go/tools/bootstrap.cmd
Normal file
@@ -0,0 +1 @@
|
||||
%~dp0\platform\win\bin\go-bootstrap.exe %1 %2
|
||||
5
go/tools/bootstrap.sh
Executable file
5
go/tools/bootstrap.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#! /bin/bash
|
||||
|
||||
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$SCRIPTDIR/utils.sh"
|
||||
run go-bootstrap "$@"
|
||||
1
go/tools/index.cmd
Normal file
1
go/tools/index.cmd
Normal file
@@ -0,0 +1 @@
|
||||
%~dp0\platform\win\bin\go-autobuilder.exe
|
||||
5
go/tools/index.sh
Executable file
5
go/tools/index.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#! /bin/bash
|
||||
set -ex
|
||||
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$SCRIPTDIR/utils.sh"
|
||||
run go-autobuilder
|
||||
1
go/tools/qltest.cmd
Normal file
1
go/tools/qltest.cmd
Normal file
@@ -0,0 +1 @@
|
||||
%~dp0\platform\win\bin\go-extractor.exe -mod=vendor ./...
|
||||
5
go/tools/qltest.sh
Executable file
5
go/tools/qltest.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#! /bin/bash
|
||||
set -e
|
||||
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$SCRIPTDIR/utils.sh"
|
||||
run go-extractor -mod=vendor ./...
|
||||
24
go/tools/utils.sh
Normal file
24
go/tools/utils.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#! /bin/bash
|
||||
|
||||
if [ -z "$SEMMLE_PLATFORM" ]
|
||||
then
|
||||
case "$OSTYPE" in
|
||||
linux*) SEMMLE_PLATFORM="linux";;
|
||||
darwin*) SEMMLE_PLATFORM="osx";;
|
||||
msys*) SEMMLE_PLATFORM="win";;
|
||||
*) echo "This script only works on Linux, macOS and msys; OSTYPE: $OSTYPE" && exit 1
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ "$SEMMLE_PLATFORM" = "win" ]
|
||||
then
|
||||
EXE=".exe"
|
||||
else
|
||||
EXE=""
|
||||
fi
|
||||
|
||||
run() {
|
||||
cmd=$1
|
||||
shift
|
||||
"$SCRIPTDIR/platform/$SEMMLE_PLATFORM/bin/$cmd$EXE" "$@"
|
||||
}
|
||||
Reference in New Issue
Block a user