1#!/bin/sh 2 3tmp=$1 4file=${tmp:=VERSION} 5gitver=$(git describe 2>/dev/null | tr - .) 6filever=$(cat ${file} 2>/dev/null) 7 8version=${gitver} 9: ${version:=$filever} 10 11echo "$version" 12