github.com/alpe/etcd@v0.1.2-0.20130915230056-09f31af88aeb/scripts/release-version (about)

     1  #!/bin/sh
     2  
     3  VER=$(git describe --tags HEAD)
     4  
     5  cat <<EOF
     6  package main
     7  const releaseVersion = "$VER"
     8  EOF