diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index fb3eee7f..bc3d56bf 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -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", diff --git a/Makefile b/Makefile index 8c293002..9dbf98f0 100644 --- a/Makefile +++ b/Makefile @@ -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 ./... diff --git a/buildscripts/updatedeps.sh b/buildscripts/updatedeps.sh new file mode 100755 index 00000000..c71d2e70 --- /dev/null +++ b/buildscripts/updatedeps.sh @@ -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 "$@"