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

    1: #! /bin/sh
    2:  
    3: packageinfo='./packageinfo.sh'
    4: case "$#" in
    5:  2)
    6:     case "$1" in
    7:      -p|--packageinfo)
    8: 	packageinfo="$2"
    9:     esac
   10:     ;;
   11:  0)
   12:     ;;
   13:  *) echo "Usage: $0 [-p packageinfo.sh]"
   14:     exit 1
   15:     ;;
   16: esac
   17: 
   18: # This script must be executed from the TLD of the source tree...
   19: . "$packageinfo"
   20: 
   21: NAME="$version"
   22: case $point in
   23:  [1-9]*)
   24:     NAME="${NAME}p${point}"
   25:     ;;
   26:  NEW) ;;
   27:  '') ;;
   28:  *) echo "Unexpected value for 'point' <$point>!"
   29:     exit 1
   30:     ;;
   31: esac
   32: 
   33: case $special in
   34:  '') ;;
   35:  *) NAME="${NAME}-${special}" ;;
   36: esac
   37: 
   38: case "$prerelease::$repotype" in
   39:  ''::*)
   40:     ;;
   41:  beta::stable)
   42:     NAME="${NAME}-beta${betapoint}"
   43:     ;;
   44:  rc::dev|RC::dev)
   45:     NAME="${NAME}-RC"
   46:     ;;
   47:  rc::stable|RC::stable)
   48:     NAME="${NAME}-RC${rcpoint}"
   49:     ;;
   50:  *) echo "Unexpected value for 'prerelease::repotype' <$prerelease::$repotype>!"
   51:     exit 1
   52:     ;;
   53: esac
   54: 
   55: echo "$NAME"

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