freebsd-dev/contrib/dma/get-version.sh
Baptiste Daroussin a9e8641da9 Import Dragonfly Mail Agent into base system
It is a small and lightweight Mail Transport Agent.
It accepts mails from locally installed Mail User Agents (MUA) and delivers the
mails either locally or to a remote destination. Remote delivery includes
several features like TLS/SSL support, SMTP authentication and NULLCLIENT.

Make dma conditional to new WITHOUT_DMA option and make it respect WITHOUT_MAIL

Reviewed by:	peter
Discussed with:	emaste, bz, peter
2014-02-21 07:26:49 +00:00

10 lines
137 B
Bash
Executable File

#!/bin/sh
gitver=$(git describe 2>/dev/null | tr - .)
filever=$(cat VERSION)
version=${gitver}
: ${version:=$filever}
echo "$version"