From dce95455e33d13653d2619b8df839137bbe241a7 Mon Sep 17 00:00:00 2001 From: Lesik Date: Sat, 22 Jul 2017 18:11:28 +0200 Subject: [PATCH 1/4] Create install.gup for system-wide install --- install.gup | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 install.gup diff --git a/install.gup b/install.gup new file mode 100644 index 0000000..502a7ee --- /dev/null +++ b/install.gup @@ -0,0 +1,8 @@ +#!bash -eu +here="$(pwd)" +gup --always + +dest="/usr/share/gnome-shell/extensions/shellshape@gfxmonk.net" +echo "Installing to $dest" +mkdir -p "$(dirname "$dest")" +ln -sfn "$here/shellshape" "$dest" From 6fb1a68e8fdea5e473c21df5e6b8ec154e37a6af Mon Sep 17 00:00:00 2001 From: Lesik Date: Sat, 22 Jul 2017 18:15:09 +0200 Subject: [PATCH 2/4] Update README.md to reflect system-wide installation --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0a957b1..c470ce4 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ To build the latest version, you'll need to install `npm` (the node.js package m 3. you can install the extension to a symlink in ~/.local/share/gnome-shell/extensions using: tools/gup dev-install + + Alternatively, to install the extension system-wide (available for all users), run: + + tools/gup install To compile stuff (after changing some source code), run `tools/gup compile`. You can add e.g `-j3` to compile stuff in parallel. From fad2d2a80c144fbde34dd6e5172a6f835c452f57 Mon Sep 17 00:00:00 2001 From: Lesik Date: Sat, 29 Jul 2017 13:40:46 +0200 Subject: [PATCH 3/4] Respect $PREFIX --- install.gup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.gup b/install.gup index 502a7ee..308b566 100644 --- a/install.gup +++ b/install.gup @@ -2,7 +2,7 @@ here="$(pwd)" gup --always -dest="/usr/share/gnome-shell/extensions/shellshape@gfxmonk.net" +dest="$PREFIX/usr/share/gnome-shell/extensions/shellshape@gfxmonk.net" echo "Installing to $dest" mkdir -p "$(dirname "$dest")" ln -sfn "$here/shellshape" "$dest" From 76b5b173dd1e27ea279e001ad02548661a093914 Mon Sep 17 00:00:00 2001 From: Lesik Date: Sat, 29 Jul 2017 13:44:40 +0200 Subject: [PATCH 4/4] Don't symlink --- install.gup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.gup b/install.gup index 308b566..4cf2d98 100644 --- a/install.gup +++ b/install.gup @@ -5,4 +5,4 @@ gup --always dest="$PREFIX/usr/share/gnome-shell/extensions/shellshape@gfxmonk.net" echo "Installing to $dest" mkdir -p "$(dirname "$dest")" -ln -sfn "$here/shellshape" "$dest" +cp -R "$here/shellshape" "$dest"