From bb8723d55ac874b69fcc87ca6b03d6f3aa4d505b Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Tue, 17 Aug 2021 14:01:55 -0400 Subject: [PATCH] Remove XUL opensrf.math Client Signed-off-by: Jason Boyer Signed-off-by: Jason Stephenson Signed-off-by: Chris Sharp --- Makefile.am | 4 +- configure.ac | 3 +- examples/math_xul_client/Makefile.in | 19 ----- examples/math_xul_client/install.js | 98 ---------------------- .../math/content/conf/client_config.xml | 53 ------------ examples/math_xul_client/math/content/contents.rdf | 17 ---- examples/math_xul_client/math/content/math.xul | 38 --------- examples/math_xul_client/math/content/math_app.js | 50 ----------- .../math_xul_client/math/content/math_overlay.xul | 32 ------- .../math_xul_client/math/locale/en-US/contents.rdf | 19 ----- .../math_xul_client/math/locale/en-US/math.dtd | 7 -- examples/math_xul_client/math/skin/contents.rdf | 23 ----- examples/math_xul_client/math/skin/math.css | 4 - 13 files changed, 2 insertions(+), 365 deletions(-) delete mode 100644 examples/math_xul_client/Makefile.in delete mode 100644 examples/math_xul_client/install.js delete mode 100644 examples/math_xul_client/math/content/conf/client_config.xml delete mode 100644 examples/math_xul_client/math/content/contents.rdf delete mode 100644 examples/math_xul_client/math/content/math.xul delete mode 100644 examples/math_xul_client/math/content/math_app.js delete mode 100644 examples/math_xul_client/math/content/math_overlay.xul delete mode 100644 examples/math_xul_client/math/locale/en-US/contents.rdf delete mode 100644 examples/math_xul_client/math/locale/en-US/math.dtd delete mode 100644 examples/math_xul_client/math/skin/contents.rdf delete mode 100644 examples/math_xul_client/math/skin/math.css diff --git a/Makefile.am b/Makefile.am index 4846ddd..bf1effe 100644 --- a/Makefile.am +++ b/Makefile.am @@ -55,9 +55,7 @@ EXAMPLES_FILES = @srcdir@/examples/fieldmapper2cdbi.xsl \ @srcdir@/examples/math_bench.pl \ @srcdir@/examples/math_client.py \ @srcdir@/examples/multisession-test.pl \ - @srcdir@/examples/srfsh_config.xsd \ - @srcdir@/examples/math_xul_client/math \ - @srcdir@/examples/math_xul_client/install.js + @srcdir@/examples/srfsh_config.xsd strn_compat_FILES = @srcdir@/src/ports/strn_compat/strndup.c \ @srcdir@/src/ports/strn_compat/strndup.h \ diff --git a/configure.ac b/configure.ac index a643bfd..21963b0 100644 --- a/configure.ac +++ b/configure.ac @@ -317,7 +317,6 @@ if test "x$OSRF_INSTALL_CORE" = "xtrue"; then #------------------------------------ AC_CONFIG_FILES([doc/dokuwiki-doc-stubber.pl - examples/math_xul_client/Makefile examples/math_bench.pl examples/multisession-test.pl src/c-apps/Makefile @@ -330,7 +329,7 @@ if test "x$OSRF_INSTALL_CORE" = "xtrue"; then src/router/Makefile src/srfsh/Makefile src/websocket-stdio/Makefile - tests/Makefile + tests/Makefile bin/opensrf-perl.pl bin/osrf_config]) fi diff --git a/examples/math_xul_client/Makefile.in b/examples/math_xul_client/Makefile.in deleted file mode 100644 index 41ac95c..0000000 --- a/examples/math_xul_client/Makefile.in +++ /dev/null @@ -1,19 +0,0 @@ -all: clean client - @echo - -client: - @echo We need the OpenSRF javascript code... - mkdir math/content/OpenSRF/ - cp ../../src/javascript/*.js math/content/OpenSRF/ - @echo We need a log directory... - mkdir math/content/log - touch math/content/log/preserve.directory.when.zipping - @echo We also need a math/content/conf/client_config.xml pointing to a running OpenSRF Math application. - @echo Then we package this into a Mozilla XPI file... - zip -q -r math.xpi install.js math/ - @echo After installing the XPI, use the chrome URL: - @echo chrome://math/content/ - -clean: - @echo Removing the OpenSRF javascript code, the log directory, and math.xpi... - rm -rf math/content/OpenSRF/ math/content/log math.xpi diff --git a/examples/math_xul_client/install.js b/examples/math_xul_client/install.js deleted file mode 100644 index 0b10d3d..0000000 --- a/examples/math_xul_client/install.js +++ /dev/null @@ -1,98 +0,0 @@ -// ripped from Evergreen installation file - -/* We'll want to make this more flexible later */ - -install(); - -// ---------------------------------------------------------------------------- -// Performs the install -// ---------------------------------------------------------------------------- -function install() { - - // ---------------------------------------------------------------------------- - var _authors = "PINES"; - var _package = "math"; - var _packg_l = "math"; - var _version = "0.0.1"; - // ---------------------------------------------------------------------------- - - var err; // track the error - - err = initInstall( _package, "/"+_authors+"/"+_package, _version ); - if( err != 0 ) { return warn( "initInstall: " + err );} - - // ---------------------------------------------------------------------------- - // Discovers the path to the install directory - // ---------------------------------------------------------------------------- - install_dir = getFolder("Chrome", _packg_l ); - logComment( "Installing to: " + install_dir ); - - // ---------------------------------------------------------------------------- - // Directory where the 'content' is stored - // ---------------------------------------------------------------------------- - content_dir = getFolder( install_dir, "content" ); - if( err != 0 ) { return warn("getFolder:content_dir: " + err);} - - // ---------------------------------------------------------------------------- - // Directory where the skins are stored - // ---------------------------------------------------------------------------- - skin_dir = getFolder( install_dir, "skin" ); - if( err != 0 ) { return warn("getFolder:skin: " + err);} - - // ---------------------------------------------------------------------------- - // Directory where the local data is stored - // ---------------------------------------------------------------------------- - locale_dir = getFolder( install_dir, "locale" ); - if( err != 0 ) { return warn("getFolder:locale: " + err);} - - // ---------------------------------------------------------------------------- - // Sets the install directory for Evergreen - // ---------------------------------------------------------------------------- - err = setPackageFolder(install_dir); - if( err != 0 ) { return warn("setPackageFolder: " + err);} - - // ---------------------------------------------------------------------------- - // Searches the .xpi file for the directory name stored in _packg_l and - // copies that directory from the .xpi into Mozilla's chrome directory. - // In this case, we are copying over the entire evergreen folder - // ---------------------------------------------------------------------------- - err = addDirectory( _packg_l ) - if( err != 0 ) { return warn("addDirectory: " + err);} - - - // ---------------------------------------------------------------------------- - // Register the content directory - // The final argument is where Mozilla should expect to find the contents.rdf - // file *after* installation for the CONTENT portion of the package - // ---------------------------------------------------------------------------- - err = registerChrome( Install.CONTENT, content_dir ); - if( err != 0 ) { return warn("registerChrome:content " + err );} - - // ---------------------------------------------------------------------------- - // Register the skin directory - // ---------------------------------------------------------------------------- - err = registerChrome( Install.SKIN, skin_dir ); - if( err != 0 ) { return warn("registerChrome:skin " + err );} - - // ---------------------------------------------------------------------------- - // Register the locale directory - // ---------------------------------------------------------------------------- - //err = registerChrome( Install.LOCALE, locale_dir ); - //if( err != 0 ) { return warn("registerChrome:locale " + err );} - - err = registerChrome( Install.LOCALE, getFolder(locale_dir, "en-US") ); - if( err != 0 ) { return warn("registerChrome:locale " + err );} - - // ---------------------------------------------------------------------------- - // Do it. - // ---------------------------------------------------------------------------- - performInstall(); - -} - -function warn( message ) { - alert( message ); - logComment( message ); - return; -} - diff --git a/examples/math_xul_client/math/content/conf/client_config.xml b/examples/math_xul_client/math/content/conf/client_config.xml deleted file mode 100644 index 0dc75a9..0000000 --- a/examples/math_xul_client/math/content/conf/client_config.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - myhostname - - - 0 - - - 0 - - - - - - - debug.log - transport.log - error.log - - - - - - router@localhost/math - router@localhost/mathdb - router@localhost/storage - - - - - - jabber_connection - - - 15 - math_user - math_user_password - localhost - 5222 - 0 - - - diff --git a/examples/math_xul_client/math/content/contents.rdf b/examples/math_xul_client/math/content/contents.rdf deleted file mode 100644 index 7a8fb13..0000000 --- a/examples/math_xul_client/math/content/contents.rdf +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/examples/math_xul_client/math/content/math.xul b/examples/math_xul_client/math/content/math.xul deleted file mode 100644 index d6a1371..0000000 --- a/examples/math_xul_client/math/content/math.xul +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - -