1
0
mirror of https://github.com/horst3180/arc-theme.git synced 2024-10-27 19:04:02 +00:00

Adding new script to upgrade the theme

This commit is contained in:
Leandro Heck 2015-10-07 20:17:03 -03:00
parent 15936ec9d3
commit b1adfe30da
2 changed files with 24 additions and 0 deletions

19
arc-theme-upgrade Executable file
View File

@ -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

View File

@ -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