Two new version special cases in BLFS

This commit is contained in:
Pierre Labastie 2017-07-07 07:40:42 +00:00
parent 9bbb9c83f3
commit d0e13dd268

View file

@ -29,6 +29,10 @@ case $1 in
local VERSION2=$(sed -n 's/.*icu-minor[^0-9]*\([^"]*\).*/\1/p' $PACKENT) local VERSION2=$(sed -n 's/.*icu-minor[^0-9]*\([^"]*\).*/\1/p' $PACKENT)
VERSION=$VERSION1.$VERSION2 VERSION=$VERSION1.$VERSION2
;; ;;
flashplayer*)
local PACKENT=$(dirname $PACK_INSTALL)/blfs-xml/packages.ent
VERSION=$(sed -n 's/.*flashplayer[^0-9]*\([^"]*\).*/\1/p' $PACKENT)
;;
soundtouch*) soundtouch*)
local PACKENT=$(dirname $PACK_INSTALL)/blfs-xml/packages.ent local PACKENT=$(dirname $PACK_INSTALL)/blfs-xml/packages.ent
VERSION=$(sed -n 's/.*soundtouch[^0-9]*\([^"]*\).*/\1/p' $PACKENT) VERSION=$(sed -n 's/.*soundtouch[^0-9]*\([^"]*\).*/\1/p' $PACKENT)
@ -46,6 +50,9 @@ case $1 in
cacerts*) cacerts*)
VERSION=0.1 VERSION=0.1
;; ;;
btrfs*)
VERSION=$(echo $1 | sed 's/^.*v//')
;;
*) *)
VERSION=$(echo $1 | sed 's/^.*[-_]\([0-9]\)/\1/' | sed 's/_/./g') VERSION=$(echo $1 | sed 's/^.*[-_]\([0-9]\)/\1/' | sed 's/_/./g')
;; ;;