From 0f952506ab70dfb7c949c3f9127d7a72af6523b5 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 28 Oct 2015 16:08:56 +0100 Subject: [PATCH] cloudsuite: With the iframe approach, we don't need to embed anything. --- src/updateCloudSuite.sh | 96 ----------------------------------------- 1 file changed, 96 deletions(-) delete mode 100755 src/updateCloudSuite.sh diff --git a/src/updateCloudSuite.sh b/src/updateCloudSuite.sh deleted file mode 100755 index 953fbdcf..00000000 --- a/src/updateCloudSuite.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/bash -# Copies the needed files from the build dir of the WebODF pullbox branch -# -# Prepare the webodf build dir by calling: make webodf-debug.js-target editor-compiled.js-target - -if [ ! -e "README.md" ]; then - echo "Call me in the toplevel dir of OwnCloud Documents." - exit 1 -fi - -if [ $# -lt 1 ]; then - echo "Usage : $0 prepare|copy|patch" - exit 1 -fi - -LOLEAFLET_SRCDIR='online/loleaflet/' -CLOUDSUITE_SRCDIR='loolvm/looldemo/assets/' - -JS_TARGET='js/3rdparty/cloudsuite/' -CSS_TARGET='css/3rdparty/cloudsuite/' -TEMPLATE_TARGET='templates/3rdparty/cloudsuite' - -# create folders -function prepare(){ - if [ ! -d "$LOLEAFLET_SRCDIR" ]; then - git clone git://anongit.freedesktop.org/libreoffice/online - ( cd online/loleaflet && npm install ) || exit 1 - else - pushd "$LOLEAFLET_SRCDIR" - git pull --rebase - popd - fi - - if [ ! -d "$CLOUDSUITE_SRCDIR" ]; then - git clone ssh://git.internal.collabora.co.uk/git/productivity/loolvm.git - else - pushd "$CLOUDSUITE_SRCDIR" - git pull --rebase - popd - fi - - ( cd "$LOLEAFLET_SRCDIR" && jake build && cd plugins/draw-0.2.4/ && jake build ) || exit 1 -} - -# copy sources -function copy_sources(){ - mkdir -p "$JS_TARGET" - - # loleaflet - cp "$LOLEAFLET_SRCDIR"/dist/leaflet.js "$JS_TARGET" - cp "$LOLEAFLET_SRCDIR"/plugins/draw-0.2.4/dist/leaflet.draw.js "$JS_TARGET" - - # loleaflet deps - cp "$LOLEAFLET_SRCDIR"/dist/dialog/vex.combined.min.js "$JS_TARGET" - cp "$LOLEAFLET_SRCDIR"/src/scrollbar/jquery.mCustomScrollbar.js "$JS_TARGET" - - # cloudsuite - cp "$CLOUDSUITE_SRCDIR"/toolbar/cloudsuite.js "$JS_TARGET" - cp "$CLOUDSUITE_SRCDIR"/toolbar/select2.min.js "$JS_TARGET" - cp "$CLOUDSUITE_SRCDIR"/toolbar/w2ui.min.js "$JS_TARGET" - - # general - ( cd "$JS_TARGET" && rm -f jquery.min.js && wget 'http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js' ) - - mkdir -p "$CSS_TARGET" - - # loleaflet - cp "$LOLEAFLET_SRCDIR"/dist/leaflet.css "$CSS_TARGET" - cp "$LOLEAFLET_SRCDIR"/plugins/draw-0.2.4/dist/leaflet.draw.css "$CSS_TARGET" - cp "$LOLEAFLET_SRCDIR"/src/scrollbar/jquery.mCustomScrollbar.css "$CSS_TARGET" - cp "$LOLEAFLET_SRCDIR"/dist/dialog/vex.css "$CSS_TARGET" - cp "$LOLEAFLET_SRCDIR"/dist/dialog/vex-theme-plain.css "$CSS_TARGET" - - # cloudsuite - cp "$CLOUDSUITE_SRCDIR"/toolbar/w2ui.min.css "$CSS_TARGET" - cp "$CLOUDSUITE_SRCDIR"/toolbar/select2.min.css "$CSS_TARGET" - - mkdir -p "$TEMPLATE_TARGET" - - cp -R "$CLOUDSUITE_SRCDIR" "$TEMPLATE_TARGET" - cp -R "$LOLEAFLET_SRCDIR" "$TEMPLATE_TARGET" -} - -# patches against upstream -function patch_sources(){ - echo "Nothing for CloudSuite..." -} - -case "$1" in - 'prepare' ) - prepare ;; - 'copy' ) - copy_sources ;; - 'patch' ) - patch_sources ;; -esac