summaryrefslogtreecommitdiff
path: root/scripts/build/VersionName
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2015-02-05 20:53:33 +0000
committerCy Schubert <cy@FreeBSD.org>2015-02-05 20:53:33 +0000
commitf7cba3a80d9ebefc57776fffd17a4ae68f72e494 (patch)
treedc1c5074828f0c5fafe2fb8f5599339dfdc5bc97 /scripts/build/VersionName
parent44a728f815af203cd7a91db83b06325818433463 (diff)
Notes
Diffstat (limited to 'scripts/build/VersionName')
-rwxr-xr-xscripts/build/VersionName15
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/build/VersionName b/scripts/build/VersionName
index 71e31a948ff0..84b5972261ac 100755
--- a/scripts/build/VersionName
+++ b/scripts/build/VersionName
@@ -19,8 +19,17 @@ esac
. "$packageinfo"
NAME="$version"
-case $point in
- [1-9]*)
+case "$repotype::$point" in
+ dev::)
+ case "${proto}.${major}" in
+ 4.[012])
+ NAME="${NAME}p${point}"
+ ;;
+ *) NAME="${NAME}"
+ ;;
+ esac
+ ;;
+ stable::[1-9]* | dev::[0-9]*)
case "${proto}.${major}" in
4.[012])
NAME="${NAME}p${point}"
@@ -31,7 +40,7 @@ case $point in
;;
NEW) ;;
'') ;;
- *) echo "Unexpected value for 'point' <$point>!"
+ *) echo "Unexpected value for 'point' <$point>! (repotype is <$repotype>)"
exit 1
;;
esac