mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
Elimitate use of arithmetic expansion for portability
Use expr rather than $(( <arithmetic> )) - this is needed at least for the default Solaris shell. Based on patch by Halton Huo http://bugzilla.gnome.org/show_bug.cgi?id=590719
This commit is contained in:
parent
3eee6b4218
commit
da934be354
@ -540,9 +540,10 @@ mutter-$VERSION:
|
||||
Xcursor: ${have_xcursor}
|
||||
"
|
||||
|
||||
|
||||
MUTTER_MINOR_VERSION=mutter_minor_version
|
||||
if test $(( $(echo $MUTTER_MINOR_VERSION) %2)) == "1"; then
|
||||
stable_version=$(( ($MUTTER_MINOR_VERSION / 2) * 2))
|
||||
if expr $MUTTER_MINOR_VERSION % 2 > /dev/null ; then
|
||||
stable_version=`expr $MUTTER_MINOR_VERSION - 1`
|
||||
echo "This is the UNSTABLE branch of mutter"
|
||||
echo -n "Use 2.$stable_version.x for stable "
|
||||
echo "(gnome-2-$stable_version branch in Subversion)"
|
||||
|
Loading…
Reference in New Issue
Block a user