File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / scripts / VersionName
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 7 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

#! /bin/sh
 
packageinfo='./packageinfo.sh'
case "$#" in
 2)
    case "$1" in
     -p|--packageinfo)
	packageinfo="$2"
    esac
    ;;
 0)
    ;;
 *) echo "Usage: $0 [-p packageinfo.sh]"
    exit 1
    ;;
esac

# This script must be executed from the TLD of the source tree...
. "$packageinfo"

NAME="$version"
case $point in
 [1-9]*)
    NAME="${NAME}p${point}"
    ;;
 NEW) ;;
 '') ;;
 *) echo "Unexpected value for 'point' <$point>!"
    exit 1
    ;;
esac

case $special in
 '') ;;
 *) NAME="${NAME}-${special}" ;;
esac

case "$prerelease::$repotype" in
 ''::*)
    ;;
 beta::stable)
    NAME="${NAME}-beta${betapoint}"
    ;;
 rc::dev|RC::dev)
    NAME="${NAME}-RC"
    ;;
 rc::stable|RC::stable)
    NAME="${NAME}-RC${rcpoint}"
    ;;
 *) echo "Unexpected value for 'prerelease::repotype' <$prerelease::$repotype>!"
    exit 1
    ;;
esac

echo "$NAME"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>