Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / scripts / VersionName
blobf601cc34821e5cd64a56b21f5711b515f04473c1
1 #! /bin/sh
3 # This script must be executed from the TLD of the source tree...
4 . ./packageinfo.sh
6 NAME="$version"
7 case $point in
8 [0-9]*)
9 NAME="${NAME}p$point"
11 NEW) ;;
12 '') ;;
13 *) echo "Unexpected value for 'point' <$point>!"
14 exit 1
16 esac
18 case $special in
19 '') ;;
20 *) NAME="${NAME}-$special" ;;
21 esac
23 case $releasecandidate in
24 [Nn][Oo]) ;;
25 [Yy][Ee][Ss]) NAME="${NAME}-RC" ;;
26 *) echo "Unexpected value for 'releasecandidate' <$releasecandidate>!"
27 exit 1
29 esac
31 case $repotype in
32 stable)
33 case $rcpoint in
34 [0-9]*)
35 NAME="${NAME}$rcpoint"
37 esac
39 esac
41 echo "$NAME"