aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarc-theme-upgrade6
-rw-r--r--common/Makefile.am2
2 files changed, 4 insertions, 4 deletions
diff --git a/arc-theme-upgrade b/arc-theme-upgrade
index c4c796a..c4f895e 100755
--- a/arc-theme-upgrade
+++ b/arc-theme-upgrade
@@ -1,4 +1,4 @@
-#/!bin/bash
+#!/bin/bash
# Script to upgrade/install the arc-theme
@@ -12,8 +12,8 @@ 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
-./autogen.sh --prefix=/usr --with-gnome=3.16
+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
diff --git a/common/Makefile.am b/common/Makefile.am
index 144e43e..ae975c6 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -8,7 +8,7 @@ ithemedarkdir = $(DESTDIR)$(themedarkdir)
install-exec-hook:
@ echo "Coping/upgrading arc-theme-upgrade script to /usr/bin/"
- @ cp -f ../arc-theme-upgrade /usr/bin/
+ @ cp -f $(srcdir)/arc-theme-upgrade /usr/bin/
install-data-local: