#!/bin/sh# Gets the version number from git, or from the contents of .versionVERSION=iftest-f".version"thenVERSION=$(cat.version)fiiftest-d"./.git"thenVERSION=$(gitdescribe--tags)VERSION=${VERSION#v}echo$VERSION>.version
fiiftest"x$VERSION"="x"thenVERSION="unknown"fiecho"$VERSION"