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:
Pierre Labastie 2021-12-19 17:22:24 +01:00
parent dd9ca56bd2
commit ff5c301860

View file

@ -78,6 +78,10 @@ case $1 in
junit*|inih*) # can contain -rd.d or just -d.d junit*|inih*) # can contain -rd.d or just -d.d
VERSION=$(echo $1 | sed 's/^.*[r-]//') 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') VERSION=$(echo $1 | sed 's/^.*[-_]\([0-9]\)/\1/' | sed 's/_/./g')
;; ;;