Fix building _dev_ versions

This commit is contained in:
Yamashita Yuu 2014-12-11 22:35:12 +09:00
parent be4f5992d6
commit fc49f7e21e

View file

@ -1775,11 +1775,17 @@ python_bin_suffix() {
case "$1" in case "$1" in
2.* | 3.* ) 2.* | 3.* )
version_name="$1" version_name="$1"
version_name="${version_name%-dev}"
version_name="${version_name%-rc*}"
version_name="${version_name%rc*}"
version_info=(${version_name//./ }) version_info=(${version_name//./ })
echo "${version_info[0]}.${version_info[1]}" echo "${version_info[0]}.${version_info[1]}"
;; ;;
stackless-2.* | stackless-3.* ) stackless-2.* | stackless-3.* )
version_name="${1#stackless-}" version_name="${1#stackless-}"
version_name="${version_name%-dev}"
version_name="${version_name%-rc*}"
version_name="${version_name%rc*}"
version_info=(${version_name//./ }) version_info=(${version_name//./ })
echo "${version_info[0]}.${version_info[1]}" echo "${version_info[0]}.${version_info[1]}"
;; ;;