generated from demus/basic-rpm-template
9 lines
339 B
Bash
9 lines
339 B
Bash
#!/bin/bash
|
|
# Update go vendor archive and config emulating the way go2rpm does it
|
|
if [ $# -ne 1 ] || ! [[ "$1" =~ .*.\.spec$ ]] || [ ! -f "$1" ]; then
|
|
echo "Required spec parameter missing"
|
|
echo "Usage: go2rpm-vendor-update <specfile>.spec"
|
|
exit 1
|
|
fi
|
|
go_vendor_archive create --config go-vendor-tools.toml --write-config "$1"
|