Treat the case of boost in packInstall.sh.porg
The default VERSION returned is always "0". Create a special case to prevent that.
This commit is contained in:
parent
dd9ca56bd2
commit
ff5c301860
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,10 @@ case $1 in
|
|||
junit*|inih*) # can contain -rd.d or just -d.d
|
||||
VERSION=$(echo $1 | sed 's/^.*[r-]//')
|
||||
;;
|
||||
boost*) # $1 is of the form boost_1_dd_0. Since sed is greedy, the default
|
||||
# case takes only "0" for VERSION
|
||||
VERSION=$(echo $1 | sed 's/boost_//' | sed 's/_/./g')
|
||||
;;
|
||||
*)
|
||||
VERSION=$(echo $1 | sed 's/^.*[-_]\([0-9]\)/\1/' | sed 's/_/./g')
|
||||
;;
|
||||
|
|
Reference in a new issue