]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ntp/scripts/VersionName
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ntp / scripts / VersionName
1 #! /bin/sh
2  
3 # This script must be executed from the TLD of the source tree...
4 . ./packageinfo.sh
5
6 NAME="$version"
7 case $point in
8  [0-9]*)
9     NAME="${NAME}p$point"
10     ;;
11  NEW) ;;
12  '') ;;
13  *) echo "Unexpected value for 'point' <$point>!"
14     exit 1
15     ;;
16 esac
17
18 case $special in
19  '') ;;
20  *) NAME="${NAME}-$special" ;;
21 esac
22
23 case $releasecandidate in
24  [Nn][Oo]) ;;
25  [Yy][Ee][Ss]) NAME="${NAME}-RC" ;;
26  *) echo "Unexpected value for 'releasecandidate' <$releasecandidate>!"
27     exit 1
28     ;;
29 esac
30
31 case $repotype in
32  stable)
33     case $rcpoint in
34      [0-9]*)
35         NAME="${NAME}$rcpoint"
36         ;;
37     esac
38     ;;
39 esac
40
41 echo "$NAME"