Swift: Add identify-environment script

This commit is contained in:
Michael B. Gale
2023-05-17 16:44:55 +01:00
parent 081c069b3c
commit e48fc66782
3 changed files with 17 additions and 0 deletions

View File

@@ -11,9 +11,15 @@ sh_binary(
srcs = ["autobuild.sh"],
)
sh_binary(
name = "identify-environment",
srcs = ["identify-environment.sh"],
)
pkg_files(
name = "scripts",
srcs = [
":identify-environment",
":autobuild",
":qltest",
],

View File

@@ -0,0 +1,6 @@
@echo off
SETLOCAL EnableDelayedExpansion
echo { "swift": { "os": { "name": "macOS" } } }
ENDLOCAL

View File

@@ -0,0 +1,5 @@
#!/bin/sh
set -eu
echo '{ "swift": { "os": { "name": "macOS" } } }'