Browse Source

linux: sanitize version parsing for linux-rt support

user/amery/next/luajit
Alejandro Mery 13 years ago
parent
commit
d1b6572333
  1. 4
      base/linux/linux-conf.in

4
base/linux/linux-conf.in

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../linux/linux-conf.in # Filename: package/.../linux/linux-conf.in
# Copyright (C) 2006 - 2011 The OpenSDE Project # Copyright (C) 2006 - 2012 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf # Copyright (C) 1998 - 2003 Clifford Wolf
# #
@ -18,7 +18,7 @@ treever=$(echo $ver | cut -d. -f1-2 | tr -d .)
lx_confdir=$(pkgdesc confdir linux) lx_confdir=$(pkgdesc confdir linux)
lx_ver=0 lx_ver=0
for x in $(echo "$ver" | cut -d. -f1-3 | tr '.' ' '); do for x in $(echo "$ver" | cut -d- -f1 | cut -d. -f1-3 | tr '.' ' '); do
lx_ver=$( expr $lx_ver \* 1000 + $x ) lx_ver=$( expr $lx_ver \* 1000 + $x )
done done

Loading…
Cancel
Save