[gnome-shell-extensions/wip/sass] theme: Use gnome-shell-sass as a submodule



commit 096c3347f11c82c9eab0e9247c3f432d93b73367
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Feb 19 20:18:26 2015 +0100

    theme: Use gnome-shell-sass as a submodule
    
    The sass sources now live in a project in GNOME, so they can
    be used in multiple projects like gnome-shell-extensions.
    Because of that, add gnome-shell-sass as a submodule of
    gnome-shell-extensions and remove the sass sources from the theme
    directory.

 .gitmodules             |    3 +++
 autogen.sh              |    8 ++++++++
 data/gnome-classic.scss |    6 +++---
 gnome-shell-sass        |    1 +
 4 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..6491cb2
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "gnome-shell-sass"]
+       path = gnome-shell-sass
+       url = https://git.gnome.org/browse/gnome-shell-sass/
diff --git a/autogen.sh b/autogen.sh
index b48e937..13cdee5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -12,6 +12,14 @@ test -f $srcdir/configure.ac || {
     exit 1
 }
 
+# Fetch submodules if needed
+if test ! -d gnome-shell-sass;
+then
+  echo "+ Setting up submodules"
+  git submodule init
+fi
+git submodule update
+
 which gnome-autogen.sh || {
     echo "You need to install gnome-common from GNOME Git (or from"
     echo "your OS vendor's package manager)."
diff --git a/data/gnome-classic.scss b/data/gnome-classic.scss
index 3f9812d..b39702e 100644
--- a/data/gnome-classic.scss
+++ b/data/gnome-classic.scss
@@ -1,9 +1,9 @@
 /* Use the gnome-shell theme, but with light colors */
 $variant: 'light';
 
- import "../../gnome-shell/data/theme/_colors"; //use gtk colors
- import "../../gnome-shell/data/theme/_drawing";
- import "../../gnome-shell/data/theme/_common";
+ import "../gnome-shell-sass/_colors"; //use gtk colors
+ import "../gnome-shell-sass/_drawing";
+ import "../gnome-shell-sass/_common";
 
 /* Overrides */
 
diff --git a/gnome-shell-sass b/gnome-shell-sass
new file mode 160000
index 0000000..f9e45c1
--- /dev/null
+++ b/gnome-shell-sass
@@ -0,0 +1 @@
+Subproject commit f9e45c152f56b086baac34f111c837287b7b1806


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]