freebsd-dev/contrib/ntp/scripts/VersionName
Ollivier Robert ea906c4152 Merge ntpd & friends 4.2.4p5 from vendor/ntp/dist into head. Next commit
will update usr.sbin/ntp to match this.

MFC after:	2 weeks
2008-08-22 15:58:00 +00:00

42 lines
621 B
Bash
Executable File

#! /bin/sh
# This script must be executed from the TLD of the source tree...
. ./packageinfo.sh
NAME="$version"
case $point in
[0-9]*)
NAME="${NAME}p$point"
;;
NEW) ;;
'') ;;
*) echo "Unexpected value for 'point' <$point>!"
exit 1
;;
esac
case $special in
'') ;;
*) NAME="${NAME}-$special" ;;
esac
case $releasecandidate in
[Nn][Oo]) ;;
[Yy][Ee][Ss]) NAME="${NAME}-RC" ;;
*) echo "Unexpected value for 'releasecandidate' <$releasecandidate>!"
exit 1
;;
esac
case $repotype in
stable)
case $rcpoint in
[0-9]*)
NAME="${NAME}$rcpoint"
;;
esac
;;
esac
echo "$NAME"