Merge pull request #888 from harshavardhana/pr_out_put_dependency_updates_into_a_shell_script

Put dependency updates into a shell script
This commit is contained in:
Harshavardhana
2015-07-15 21:25:23 +00:00
3 changed files with 37 additions and 4 deletions
+2 -2
View File
@@ -33,8 +33,8 @@
},
{
"ImportPath": "github.com/minio/minio/pkg/iodine",
"Comment": "release-1434511043-154-g784d403",
"Rev": "784d4033f73452ab9f20643da9f9085f638e705e"
"Comment": "release-1434511043-231-ga23a61d",
"Rev": "a23a61da113fcf353d097b4323f66afae62cd430"
},
{
"ImportPath": "github.com/minio/pb",
+1 -2
View File
@@ -53,8 +53,7 @@ release: getdeps verifiers
@mkdir -p $(HOME)/.mc
godepupdate:
@for i in $(grep ImportPath Godeps/Godeps.json | grep -v minio/mc | cut -f2 -d: | sed -e 's/,//' -e 's/^[ \t]*//' -e 's/[ \t]*$//' -e 's/\"//g'); do godep update $i; done
@(env bash $(PWD)/buildscripts/updatedeps.sh)
save:
@godep save ./...
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
#
# Minio Client (C) 2015 Minio, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
_init() {
godeps="Godeps/Godeps.json"
filter="minio/mc"
}
update() {
for dep in $1; do
godep update $dep;
done
}
main() {
deps=$(env grep ImportPath ${godeps} | grep -v ${filter} | cut -f2 -d: | sed -e 's/,//' -e 's/^[ \t]*//' -e 's/[ \t]*$//' -e 's/\"//g' | tr '\n' ' ')
update ${deps}
}
_init && main "$@"