#!/bin/bash ## ## Likewise Open version ## The REVISION is generated from the SVN rev number sin the log ## LIKEWISE_OPEN_MAJOR=5 LIKEWISE_OPEN_MINOR=4 LIKEWISE_OPEN_BUILD=0 LIKEWISE_OPEN_REVISION=42111 LIKEWISE_OPEN_EXTRA_TAG="ubuntu_lucid" ## check for platform specific components _UUID="" _ICONV="" case `uname -s` in NetBSD|FreeBSD) _UUID="libuuid" _ICONV="libiconv" ;; esac ## List of all components necessary __COMP_LIST="${_UUID} ${_ICONV} libunistr lwbase \ lwmapsecurity lwmsg centutils \ libtdb lwreg pstore \ lwadvapi netlogon lwio lwsm libkeytab libgss \ dcerpc lwrpcrt librpc eventlog lsass \ lwdns domainjoin srvsvc \ " function LikewiseOpenVersion { local _VERSION_STRING="${LIKEWISE_OPEN_MAJOR}.${LIKEWISE_OPEN_MINOR}.${LIKEWISE_OPEN_BUILD}.${LIKEWISE_OPEN_REVISION}" if [ -n "${LIKEWISE_OPEN_EXTRA_TAG}" ]; then _VERSION_STRING="${_VERSION_STRING}-${LIKEWISE_OPEN_EXTRA_TAG}" fi echo "${_VERSION_STRING}" } function PrintVersionData { echo "VERSION=${LIKEWISE_OPEN_MAJOR}.${LIKEWISE_OPEN_MINOR}" echo "BUILD=${LIKEWISE_OPEN_BUILD}" echo "REVISION=${LIKEWISE_OPEN_REVISION}" echo "EXTRA_TAG=${LIKEWISE_OPEN_EXTRA_TAG}" }