github.com/sagernet/wireguard-go@v0.0.0-20231215174105-89dec3b2f3e8/remove-unused.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -e -o pipefail
     4  
     5  git rm -rf --ignore-unmatch \
     6    .github \
     7    tests \
     8    **/*_test.go \
     9    conn/bindtest \
    10    tun/netstack \
    11    tun/tuntest \
    12    tun/testdata \
    13    tun/checksum.go \
    14    tun/operateonfd.go \
    15    tun/tcp_offload_linux.go \
    16    tun/tun_*.go \
    17    *.go \
    18    *.md
    19  
    20  go mod tidy
    21  git add go.mod go.sum
    22  git commit -m "Remove unused"