From 83c4bcd90e84759cdbe82eb6e28b4b9df5dc1264 Mon Sep 17 00:00:00 2001 From: Olaf Leidinger Date: Thu, 31 Oct 2013 10:16:21 +0100 Subject: [PATCH] clean-up for new configure system --- install.sh | 32 ------------------- pack.sh | 7 ---- extension.js => src/extension.js | 0 metadata.json => src/metadata.json | 0 prefs.js => src/prefs.js | 0 ...gnome.shell.extensions.teatime.gschema.xml | 0 .../utilities-teatime.svg | 0 utils.js => src/utils.js | 0 8 files changed, 39 deletions(-) delete mode 100755 install.sh delete mode 100644 pack.sh rename extension.js => src/extension.js (100%) rename metadata.json => src/metadata.json (100%) rename prefs.js => src/prefs.js (100%) rename {schemas => src/schemas}/org.gnome.shell.extensions.teatime.gschema.xml (100%) rename utilities-teatime.svg => src/utilities-teatime.svg (100%) rename utils.js => src/utils.js (100%) diff --git a/install.sh b/install.sh deleted file mode 100755 index 3afb696..0000000 --- a/install.sh +++ /dev/null @@ -1,32 +0,0 @@ -NAME="TeaTime@oleid.mescharet.de" - -if [ "$1" != "global" ] ; then - INST_DIR="$HOME/.local/share/gnome-shell/extensions/$NAME" - SUDO="" - - echo "Installing extension locally..." -else - INST_DIR="/usr/share/gnome-shell/extensions/$NAME" - SUDO="sudo" - - echo "Installing extension globally..." - - echo "Installing icon" - $SUDO cp utilities-teatime.svg /usr/share/icons/hicolor/scalable/apps/ - $SUDO gtk-update-icon-cache /usr/share/icons/hicolor/ -fi - - -echo "Installing extension" -$SUDO mkdir -p "$INST_DIR" - -$SUDO cp *.js *.json "$INST_DIR" - -if [ "$1" != "global" ]; then - $SUDO cp -ax *.svg schemas "$INST_DIR" - glib-compile-schemas "$INST_DIR"/schemas -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 -fi diff --git a/pack.sh b/pack.sh deleted file mode 100644 index d3e6044..0000000 --- a/pack.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -# -# pack for upload to extensions.gnome.org - -today=$(date +"%Y%m%d") - -zip TeaTime@oleid.mescharet.de-$today.zip *.md utils.js prefs.js extension.js install.sh *.svg metadata.json schemas/org.gnome.shell.extensions.teatime.gschema.xml schemas/gschemas.compiled diff --git a/extension.js b/src/extension.js similarity index 100% rename from extension.js rename to src/extension.js diff --git a/metadata.json b/src/metadata.json similarity index 100% rename from metadata.json rename to src/metadata.json diff --git a/prefs.js b/src/prefs.js similarity index 100% rename from prefs.js rename to src/prefs.js diff --git a/schemas/org.gnome.shell.extensions.teatime.gschema.xml b/src/schemas/org.gnome.shell.extensions.teatime.gschema.xml similarity index 100% rename from schemas/org.gnome.shell.extensions.teatime.gschema.xml rename to src/schemas/org.gnome.shell.extensions.teatime.gschema.xml diff --git a/utilities-teatime.svg b/src/utilities-teatime.svg similarity index 100% rename from utilities-teatime.svg rename to src/utilities-teatime.svg diff --git a/utils.js b/src/utils.js similarity index 100% rename from utils.js rename to src/utils.js