aboutsummaryrefslogtreecommitdiff
path: root/arc-theme-upgrade
blob: c4f895ea9399f5475bbe4357021d04d35f4e4bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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}

GNOME_VERSION=$(apt-cache show gnome-shell | grep Version | cut -d ' ' -f2 | cut -c1-4)
./autogen.sh --prefix=/usr --with-gnome=${GNOME_VERSION}
sudo make install

# Remove the sources
rm -rf /tmp/arc-theme