mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Fix gcc version number comparition issue: when 'gcc -dumpversion' output was only one digit (on Fedora 26 for example), convert_version_to_number() wasn't able to compare it to the minimum gcc version number required for U++
git-svn-id: svn://ultimatepp.org/upp/trunk@11384 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f2f2ce1c8e
commit
39f121c11e
1 changed files with 1 additions and 1 deletions
|
|
@ -79,6 +79,6 @@ convert_version_to_number()
|
||||||
log_debug_error "Function 'convert_version_to_number' called with empty parameter"
|
log_debug_error "Function 'convert_version_to_number' called with empty parameter"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo "$1" | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$/&00/'
|
echo "$1" | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$/&00/' -e 's/^[0-9]\{1,2\}$/&0000/'
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue