aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Heck2015-10-07 20:17:03 -0300
committerLeandro Heck2015-10-07 20:17:03 -0300
commitb1adfe30da122d875ea1f22ca1fa0fdd0032ddf7 (patch)
tree6d506547fd3d46bac4bb5e73fe4b97c7a13fc464
parent15936ec9d35b68c5492072b68447b764bbc629d9 (diff)
downloadsolarc-theme-b1adfe30da122d875ea1f22ca1fa0fdd0032ddf7.tar.gz
solarc-theme-b1adfe30da122d875ea1f22ca1fa0fdd0032ddf7.tar.xz
solarc-theme-b1adfe30da122d875ea1f22ca1fa0fdd0032ddf7.zip
Adding new script to upgrade the theme
-rwxr-xr-xarc-theme-upgrade19
-rw-r--r--common/Makefile.am5
2 files changed, 24 insertions, 0 deletions
diff --git a/arc-theme-upgrade b/arc-theme-upgrade
new file mode 100755
index 0000000..a394b5a
--- /dev/null
+++ b/arc-theme-upgrade
@@ -0,0 +1,19 @@
+#/!bin/bash
+
+# Script to upgrade/install the arc-theme
+
+# Remove previows files
+rm -rf /tmp/arc-theme
+
+git clone https://github.com/horst3180/arc-theme /tmp/arc-theme --depth 1 && cd /tmp/arc-theme
+
+# Remove old versions
+sudo rm -rf /usr/share/themes/{Arc,Arc-Darker,Arc-Dark}
+rm -rf ~/.local/share/themes/{Arc,Arc-Darker,Arc-Dark}
+rm -rf ~/.themes/{Arc,Arc-Darker,Arc-Dark}
+
+./autogen.sh --prefix=/usr
+sudo make install
+
+# Remove the sources
+rm -rf /tmp/arc-theme \ No newline at end of file
diff --git a/common/Makefile.am b/common/Makefile.am
index 488c211..0a0e1c8 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -6,6 +6,11 @@ ithemedir = $(DESTDIR)$(themedir)
ithemedarkerdir = $(DESTDIR)$(themedarkerdir)
ithemedarkdir = $(DESTDIR)$(themedarkdir)
+install-exec-hook:
+ @ echo "Coping/upgrading arc-theme-upgrade script to /usr/bin/"
+ @ pwd
+ @ cp -f ../arc-theme-upgrade /usr/bin/
+
install-data-local:
if ENABLE_LIGHT