Files
rkt/scripts/glide-update.sh
2017-04-07 14:47:31 +02:00

24 lines
464 B
Bash
Executable File

#!/usr/bin/env bash
#
# Update vendored dedendencies.
#
set -e
if ! [[ "$PWD" = "$GOPATH/src/github.com/rkt/rkt" ]]; then
echo "must be run from \$GOPATH/src/github.com/rkt/rkt"
exit 255
fi
if [ ! $(command -v glide) ]; then
echo "glide: command not found"
exit 255
fi
if [ ! $(command -v glide-vc) ]; then
echo "glide-vc: command not found"
exit 255
fi
glide update --strip-vendor
glide-vc --only-code --no-tests --keep="**/*.json.in" --use-lock-file