#! /bin/sh # ./version BRANCH TAG COMMIT if [ -z $2 ]; then echo "$1-$3" > ../VERSION else echo "$2" > ../VERSION fi