[gnome-code-assistance] Check for specific minimum version of sass
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] Check for specific minimum version of sass
- Date: Sat, 10 Jan 2015 13:10:21 +0000 (UTC)
commit 295c9495e63b17e2c9e981a7b1e9c78aef9ca41d
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Jan 10 14:08:42 2015 +0100
Check for specific minimum version of sass
configure.ac | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 866c5d5..d76adeb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -268,9 +268,21 @@ fi
ruby_sass=
if test "x$enable_css" = "xyes"; then
- $RUBY -rsass -e '' 2>/dev/null
- if test $? -eq 0 ; then
- ruby_sass=yes
+ AC_MSG_CHECKING([system provided sass])
+
+ MAJOR=`$RUBY -rsass -e 'puts Sass.version[[:major]]' 2>/dev/null`
+
+ if test $? -eq 0; then
+ MINOR=`$RUBY -rsass -e 'puts Sass.version[[:minor]]' 2>/dev/null`
+
+ if test "$MAJOR" -lt 3 || (test "$MAJOR" = "3" && test "$MINOR" -lt 3); then
+ AC_MSG_RESULT([no (required sass version >= 3.3 not found), using vendored sass gem])
+ else
+ ruby_sass=yes
+ AC_MSG_RESULT([yes, found sass $MAJOR.$MINOR])
+ fi
+ else
+ AC_MSG_RESULT([no, using vendored sass gem])
fi
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]