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:
Generated
+2
-2
@@ -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",
|
||||
|
||||
@@ -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 ./...
|
||||
|
||||
|
||||
Executable
+34
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user