aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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