Created
March 5, 2018 21:28
-
-
Save samm-git/611033933b64f5b80e3f9314873fc320 to your computer and use it in GitHub Desktop.
Script to update acmetool port and it dependencies
This file contains hidden or 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
#!/usr/local/bin/bash | |
set -e | |
DIR=$1 | |
cd $DIR/src/github.com | |
for f in *; do | |
cd $f | |
for f2 in *; do | |
cd $f2 | |
echo -e "\t"$f:$f2:`git rev-parse --short HEAD 2>/dev/null`:`echo $f2|tr .- _`/src/github.com/$f/$f2 \\ | |
cd .. | |
done | |
cd .. | |
done | |
cd $DIR/src/golang.org | |
for f in *; do | |
cd $f | |
for f2 in *; do | |
cd $f2 | |
echo -e "\tgolang":$f2:`git rev-parse --short HEAD 2>/dev/null`:`echo $f2|tr .- _`/src/golang.org/x/$f2 \\ | |
cd .. | |
done | |
cd .. | |
done | |
cd $DIR/src/gopkg.in | |
for f in `ls|grep -v yaml.v2`; do | |
cd $f | |
for f2 in *; do | |
cd $f2 | |
reponame=`echo $f2|sed -E 's|\.v[0-9]+||g'` | |
echo -e "\t"$f:$reponame:`git rev-parse --short HEAD 2>/dev/null`:`echo $reponame|tr .- _`/src/gopkg.in/$f/$f2 \\ | |
cd .. | |
done | |
cd .. | |
done | |
cd $DIR/src/gopkg.in/yaml.v2 | |
#go-yaml:yaml:a3f3340:go_yaml/src/gopkg.in/yaml.v2 | |
echo -e "\t"go-yaml:yaml:`git rev-parse --short HEAD 2>/dev/null`:go_yaml/src/gopkg.in/yaml.v2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment