From b1adfe30da122d875ea1f22ca1fa0fdd0032ddf7 Mon Sep 17 00:00:00 2001 From: Leandro Heck Date: Wed, 7 Oct 2015 20:17:03 -0300 Subject: Adding new script to upgrade the theme --- arc-theme-upgrade | 19 +++++++++++++++++++ common/Makefile.am | 5 +++++ 2 files changed, 24 insertions(+) create mode 100755 arc-theme-upgrade 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 -- cgit v1.2.3