23 lines
338 B
Bash
Executable file
23 lines
338 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e -o pipefail
|
|
|
|
function remove_unused() {
|
|
git rm -rf --ignore-unmatch \
|
|
.github \
|
|
tests \
|
|
*_test.go \
|
|
**/*_test.go \
|
|
conn/bindtest \
|
|
tun/netstack \
|
|
tun/tuntest \
|
|
tun/testdata \
|
|
main*.go \
|
|
*.md
|
|
}
|
|
|
|
remove_unused
|
|
remove_unused
|
|
|
|
go mod tidy
|
|
git commit -a -m "Remove unused"
|