fix installation, add install of schema

This commit is contained in:
Olaf Leidinger 2013-05-22 07:45:17 +02:00
parent 47f9d6195c
commit 0602a89ec3

View File

@ -1,7 +1,7 @@
NAME="TeaTime@oleid.mescharet.de" NAME="TeaTime@oleid.mescharet.de"
if [ "$1" = "local" ] ; then if [ "$1" = "local" ] ; then
INST_DIR="$HOME/.local/gnome-shell/extensions/$NAME" INST_DIR="$HOME/.local/share/gnome-shell/extensions/$NAME"
SUDO="" SUDO=""
else else
INST_DIR="/usr/share/gnome-shell/extensions/$NAME" INST_DIR="/usr/share/gnome-shell/extensions/$NAME"
@ -14,9 +14,10 @@ fi
echo "Installing extension" echo "Installing extension"
glib-compile-schemas schemas
$SUDO mkdir -p "$INST_DIR" $SUDO mkdir -p "$INST_DIR"
$SUDO cp *.js *.json "$INST_DIR" $SUDO cp -ax *.js *.json schemas "$INST_DIR"
if [ "$1" = "local" ]; then if [ "$1" = "local" ]; then
$SUDO cp *.svg "$INST_DIR" $SUDO cp *.svg "$INST_DIR"