get rid of some more gnulinuxisms

to get builds on openbsd going
This commit is contained in:
Mechiel Lukkien
2024-09-14 20:53:21 +02:00
parent 661e77c622
commit 0977b7a6d3
8 changed files with 125 additions and 46 deletions

2
tsc.sh
View File

@ -8,5 +8,5 @@ set -euo pipefail
out=$1
shift
./node_modules/.bin/tsc --noEmitOnError true --pretty false --newLine lf --strict --allowUnreachableCode false --allowUnusedLabels false --noFallthroughCasesInSwitch true --noImplicitReturns true --noUnusedLocals true --noImplicitThis true --noUnusedParameters true --target es2022 --module none --outFile $out.spaces "$@" | sed -E 's/^([^\(]+)\(([0-9]+),([0-9]+)\):/\1:\2:\3: /'
unexpand -t4 <$out.spaces >$out
CGO_ENABLED=0 go run unexpand.go -t 4 <$out.spaces >$out
rm $out.spaces