diff --git a/go/build_bootstrap.sh b/go/build_bootstrap.sh index b38effb..89c08a3 100755 --- a/go/build_bootstrap.sh +++ b/go/build_bootstrap.sh @@ -23,6 +23,7 @@ find src -type f \( ! -name '*.go' \ -a ! -name 'p256_asm_table.bin' \ \) -print -delete find src -type f -name '*_test.go' -print -delete +find src -type d -name 'testdata' -print0 | xargs -0 rm -vrf find src -type d -empty -print -delete find pkg -type f -name '*.a' -print -delete find pkg -type d -empty -print -delete diff --git a/go/build_go.sh b/go/build_go.sh index e8852bd..62664b4 100755 --- a/go/build_go.sh +++ b/go/build_go.sh @@ -23,6 +23,7 @@ find src -type f \( ! -name '*.go' \ -a ! -name 'p256_asm_table.bin' \ \) -print -delete find src -type f -name '*_test.go' -print -delete +find src -type d -name 'testdata' -print0 | xargs -0 rm -vrf find src -type d -empty -print -delete find pkg -type f -name '*.a' -print -delete find pkg -type d -empty -print -delete diff --git a/go/build_go19.sh b/go/build_go19.sh index b4b1849..9bdf422 100755 --- a/go/build_go19.sh +++ b/go/build_go19.sh @@ -23,6 +23,7 @@ find src -type f \( ! -name '*.go' \ -a ! -name 'p256_asm_table.bin' \ \) -print -delete find src -type f -name '*_test.go' -print -delete +find src -type d -name 'testdata' -print0 | xargs -0 rm -vrf find src -type d -empty -print -delete find pkg -type f -name '*.a' -print -delete find pkg -type d -empty -print -delete