packInstall.sh.porg: account for the possibility of
having a source directory named x265_vx.y or just x265_x.y (where x and y are digits)
This commit is contained in:
parent
5c69841844
commit
b25dbcf791
1 changed files with 3 additions and 1 deletions
|
@ -66,9 +66,11 @@ case $1 in
|
||||||
cacerts*)
|
cacerts*)
|
||||||
VERSION=0.1
|
VERSION=0.1
|
||||||
;;
|
;;
|
||||||
btrfs*|node*|x265*)
|
btrfs*|node*)
|
||||||
VERSION=$(echo $1 | sed 's/^.*v//')
|
VERSION=$(echo $1 | sed 's/^.*v//')
|
||||||
;;
|
;;
|
||||||
|
x265*) # can contain vd.d or just d.d: thanks to packagers
|
||||||
|
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')
|
||||||
;;
|
;;
|
||||||
|
|
Reference in a new issue