2013-05-20 19:09:39 +00:00
|
|
|
NAME="TeaTime@oleid.mescharet.de"
|
|
|
|
|
2013-05-22 06:09:59 +00:00
|
|
|
if [ "$1" != "global" ] ; then
|
2013-05-22 05:45:17 +00:00
|
|
|
INST_DIR="$HOME/.local/share/gnome-shell/extensions/$NAME"
|
2013-05-21 05:56:25 +00:00
|
|
|
SUDO=""
|
2013-05-22 06:09:59 +00:00
|
|
|
|
|
|
|
echo "Installing extension locally..."
|
2013-05-21 05:56:25 +00:00
|
|
|
else
|
|
|
|
INST_DIR="/usr/share/gnome-shell/extensions/$NAME"
|
|
|
|
SUDO="sudo"
|
|
|
|
|
2013-05-22 06:09:59 +00:00
|
|
|
echo "Installing extension globally..."
|
|
|
|
|
2013-05-21 05:56:25 +00:00
|
|
|
echo "Installing icon"
|
|
|
|
$SUDO cp utilities-teatime.svg /usr/share/icons/hicolor/scalable/apps/
|
|
|
|
$SUDO gtk-update-icon-cache /usr/share/icons/hicolor/
|
|
|
|
fi
|
|
|
|
|
2013-05-20 19:09:39 +00:00
|
|
|
|
|
|
|
echo "Installing extension"
|
2013-05-21 05:56:25 +00:00
|
|
|
$SUDO mkdir -p "$INST_DIR"
|
|
|
|
|
2013-05-22 06:09:59 +00:00
|
|
|
$SUDO cp *.js *.json "$INST_DIR"
|
2013-05-20 19:09:39 +00:00
|
|
|
|
2013-05-22 06:09:59 +00:00
|
|
|
if [ "$1" != "global" ]; then
|
|
|
|
$SUDO cp -ax *.svg schemas "$INST_DIR"
|
2013-05-22 06:19:11 +00:00
|
|
|
glib-compile-schemas "$INST_DIR"/schemas
|
2013-05-22 06:09:59 +00:00
|
|
|
else
|
|
|
|
echo "Installing schema"
|
|
|
|
$SUDO cp schemas/*.xml /usr/share/glib-2.0/schemas/ && \
|
|
|
|
$SUDO glib-compile-schemas /usr/share/glib-2.0/schemas/ 2> /dev/null
|
2013-05-21 05:56:25 +00:00
|
|
|
fi
|