codeql-go merge prep: move into go/ directory

This commit is contained in:
Chuan-kai Lin
2022-05-20 10:07:19 -07:00
parent 415c3d1c72
commit aa514fff32
2277 changed files with 0 additions and 0 deletions

1
go/tools/bootstrap.cmd Normal file
View File

@@ -0,0 +1 @@
%~dp0\platform\win\bin\go-bootstrap.exe %1 %2

5
go/tools/bootstrap.sh Executable file
View 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
View File

@@ -0,0 +1 @@
%~dp0\platform\win\bin\go-autobuilder.exe

5
go/tools/index.sh Executable file
View 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
View File

@@ -0,0 +1 @@
%~dp0\platform\win\bin\go-extractor.exe -mod=vendor ./...

5
go/tools/qltest.sh Executable file
View 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
View 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" "$@"
}