Created
April 23, 2018 09:55
-
-
Save hucsmn/9f9ae03a568928d23ca921870b68f569 to your computer and use it in GitHub Desktop.
auto update all sources and commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
cd $GOPATH; | |
find src '(' -name '.git' -o -name '.hg' ')' -type 'd' | perl -lpe 's{^src/(.+)/.(?:git|hg)$}{$1}' | xargs go get -u -insecure -v; | |
find src -name 'cmd' -type 'd' | perl -lpe 's{^src/(.+)$}{$1/...}' | xargs go install -v | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment