Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <friedrich@kogmbh.com>2013-09-25 02:48:54 +0400
committerFriedrich W. H. Kossebau <friedrich@kogmbh.com>2013-09-25 02:48:54 +0400
commite05d74da0a94a516e1666aefa1a1184b44fb5362 (patch)
treeaf9c216b938561e10fc3aafab91898785229e262 /src
parenta7ad5632cb8f8fa2a874c2f190e836453d0bfb96 (diff)
Add script to update WebODF from pullbox branch + patch against it
Diffstat (limited to 'src')
-rw-r--r--src/patches/fontsCssPath.patch13
-rwxr-xr-xsrc/updateWebODF.sh36
2 files changed, 49 insertions, 0 deletions
diff --git a/src/patches/fontsCssPath.patch b/src/patches/fontsCssPath.patch
new file mode 100644
index 00000000..53ba62fd
--- /dev/null
+++ b/src/patches/fontsCssPath.patch
@@ -0,0 +1,13 @@
+diff --git a/js/3rdparty/webodf/editor/EditorSession.js b/js/3rdparty/webodf/editor/EditorSession.js
+index dc90ac1..d890a8e 100644
+--- a/js/3rdparty/webodf/editor/EditorSession.js
++++ b/js/3rdparty/webodf/editor/EditorSession.js
+@@ -36,7 +36,7 @@
+ /*global define, runtime, core, gui, ops, document */
+
+ define("webodf/editor/EditorSession", [
+- "dojo/text!resources/fonts/fonts.css"
++ "dojo/text!" + OC.filePath('documents', 'css', 'fonts.css')
+ ], function (fontsCSS) { // fontsCSS is retrieved as a string, using dojo's text retrieval AMD plugin
+ "use strict";
+
diff --git a/src/updateWebODF.sh b/src/updateWebODF.sh
new file mode 100755
index 00000000..b1172acd
--- /dev/null
+++ b/src/updateWebODF.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+# Copies the needed files from the build dir of the WebODF pullbox branch
+
+WEBODF_BUILDDIR=${1%/}
+
+if [ ! -d "$WEBODF_BUILDDIR" ]; then
+ echo "Provide the toplevel build directory of WebODF pullbox branch."
+ exit 1
+fi
+if [ ! -e "README.md" ]; then
+ echo "Call me in the toplevel dir of OwnCloud Documents."
+ exit 1
+fi
+
+# copy files
+
+# webodf.js
+cp "$WEBODF_BUILDDIR"/webodf/webodf.js ./js/3rdparty/webodf
+cp "$WEBODF_BUILDDIR"/webodf/webodf-debug.js ./js/3rdparty/webodf
+# dojo
+cp "$WEBODF_BUILDDIR"/programs/editor/dojo-amalgamation.js ./js/3rdparty/webodf
+
+# Tools, Editor, EditorSession, MemberListView:
+cp "$WEBODF_BUILDDIR"/programs/editor/{Tools,Editor,EditorSession,MemberListView}.js ./js/3rdparty/webodf/editor
+cp "$WEBODF_BUILDDIR"/programs/editor/server/owncloud/* ./js/3rdparty/webodf/editor/server/owncloud -R
+cp "$WEBODF_BUILDDIR"/programs/editor/server/pullbox/* ./js/3rdparty/webodf/editor/server/pullbox -R
+cp "$WEBODF_BUILDDIR"/programs/editor/server/ServerFactory.js ./js/3rdparty/webodf/editor/server -R
+cp "$WEBODF_BUILDDIR"/programs/editor/widgets ./js/3rdparty/webodf/editor -R
+cp "$WEBODF_BUILDDIR"/programs/editor/nls ./js/3rdparty/webodf/editor -R
+cp "$WEBODF_BUILDDIR"/programs/editor/editor.css ./css/3rdparty/webodf
+
+# dojo stuff
+# TODO
+
+# patches against upstream
+patch -p1 -i src/patches/fontsCssPath.patch