Commit 9075ce49 authored by Darren Shepherd's avatar Darren Shepherd

Add tag script

parent c0527c94
#!/bin/bash
if [ -z "$1" ]; then
echo usage: $0 TAG
exit 1
fi
F="pkg/version/base.go staging/src/k8s.io/client-go/pkg/version/base.go"
for i in $F; do
cat > $i << EOF
package version
var (
gitMajor = "1"
gitMinor = "$(echo $1 | cut -f2 -d.)"
gitVersion = "$1"
gitCommit = "$(git rev-parse HEAD)"
gitTreeState = "clean"
buildDate = "$(date -u -Iminutes)Z"
)
EOF
done
git add $F
git commit -m $1
git tag $1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment