From 4d5ee2ead874c7a436faa8754eb99215927ea94d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 27 Jun 2021 16:59:44 -0400 Subject: dir rename ./sundry (from ./misc) --- org/out_cgi_search_sqlite.org | 2 +- org/out_latex.org | 2 +- org/spine_build_scaffold.org | 199 +++++++++++++++---------- org/spine_info.org | 2 +- org/util_cgi_d_sqlite_search.org | 6 +- org/util_cgi_rb_fcgi_sqlite_search.org | 32 ++-- org/util_spine_markup_conversion_from_sisu.org | 8 +- org/util_spine_syntax_highlighting_emacs.org | 6 +- org/util_spine_syntax_highlighting_vim.org | 20 +-- 9 files changed, 160 insertions(+), 117 deletions(-) (limited to 'org') diff --git a/org/out_cgi_search_sqlite.org b/org/out_cgi_search_sqlite.org index 3a5595d..64adb91 100644 --- a/org/out_cgi_search_sqlite.org +++ b/org/out_cgi_search_sqlite.org @@ -2272,7 +2272,7 @@ configuration "default" { * cgi-search README -#+HEADER: :NO-tangle "../misc/util/d/cgi/search/README" +#+HEADER: :NO-tangle "../sundry/util/d/cgi/search/README" #+BEGIN_SRC text change db name to match name of db you create cv.db_selected = "spine.search.sql.db"; diff --git a/org/out_latex.org b/org/out_latex.org index b278cda..4156071 100644 --- a/org/out_latex.org +++ b/org/out_latex.org @@ -1939,7 +1939,7 @@ string latex_tail(M)( * latex system command helper script ** latex command, ruby script -#+HEADER: :tangle "../misc/util/rb/tex/dr_tex.rb" +#+HEADER: :tangle "../sundry/util/rb/tex/dr_tex.rb" #+HEADER: :tangle-mode (identity #o755) #+HEADER: :shebang #!/usr/bin/env ruby #+BEGIN_SRC ruby diff --git a/org/spine_build_scaffold.org b/org/spine_build_scaffold.org index f4d950e..a91caf1 100644 --- a/org/spine_build_scaffold.org +++ b/org/spine_build_scaffold.org @@ -614,14 +614,14 @@ skel: mkdir -p build; \ mkdir -p views; \ mkdir -p data; \ - mkdir -p misc/util/d/cgi/search/cgi-bin/src; \ - mkdir -p misc/util/d/tools/markup_conversion; \ - mkdir -p misc/editor-syntax-etc/emacs; \ - mkdir -p misc/editor-syntax-etc/vim/syntax; \ - mkdir -p misc/editor-syntax-etc/vim/colors; \ - mkdir -p misc/editor-syntax-etc/vim/ftplugin; \ - mkdir -p misc/editor-syntax-etc/vim/rc; \ - mkdir -p misc/editor-syntax-etc/vim/templates; \ + mkdir -p sundry/util/d/cgi/search/cgi-bin/src; \ + mkdir -p sundry/util/d/tools/markup_conversion; \ + mkdir -p sundry/editor-syntax-etc/emacs; \ + mkdir -p sundry/editor-syntax-etc/vim/syntax; \ + mkdir -p sundry/editor-syntax-etc/vim/colors; \ + mkdir -p sundry/editor-syntax-etc/vim/ftplugin; \ + mkdir -p sundry/editor-syntax-etc/vim/rc; \ + mkdir -p sundry/editor-syntax-etc/vim/templates; \ mkdir -p $(PRG_SRCDIR)/$(PRG_NAME_DIR)/conf; \ mkdir -p $(PRG_SRCDIR)/$(PRG_NAME_DIR)/io_in; \ mkdir -p $(PRG_SRCDIR)/$(PRG_NAME_DIR)/io_out; \ @@ -649,14 +649,14 @@ expunge: distclean: expunge distclean_and_init: expunge mkdir -p views; \ - mkdir -p misc/util/d/cgi/search/cgi-bin/src; \ - mkdir -p misc/util/d/tools/markup_conversion; \ - mkdir -p misc/editor-syntax-etc/emacs; \ - mkdir -p misc/editor-syntax-etc/vim/syntax; \ - mkdir -p misc/editor-syntax-etc/vim/colors; \ - mkdir -p misc/editor-syntax-etc/vim/ftplugin; \ - mkdir -p misc/editor-syntax-etc/vim/rc; \ - mkdir -p misc/editor-syntax-etc/vim/templates; \ + mkdir -p sundry/util/d/cgi/search/cgi-bin/src; \ + mkdir -p sundry/util/d/tools/markup_conversion; \ + mkdir -p sundry/editor-syntax-etc/emacs; \ + mkdir -p sundry/editor-syntax-etc/vim/syntax; \ + mkdir -p sundry/editor-syntax-etc/vim/colors; \ + mkdir -p sundry/editor-syntax-etc/vim/ftplugin; \ + mkdir -p sundry/editor-syntax-etc/vim/rc; \ + mkdir -p sundry/editor-syntax-etc/vim/templates; \ mkdir -p $(PRG_SRCDIR)/$(PRG_NAME_DIR); \ mkdir -p $(PRG_BINDIR); #+END_SRC @@ -1200,7 +1200,8 @@ gitsnapshot: distclean tangle "sourcePaths": [ "./src/ext_depends/d2sqlite3/source" ], "configurations": [ { - "name": "with-lib", + "name": "d2sqlite3", + "d2sqlite3": "with-lib", "targetType": "library", "systemDependencies": "SQLite version >= 3.8.7", "libs": [ "sqlite3" ], @@ -2123,8 +2124,8 @@ fi #+HEADER: :tangle ../.envrc-local_ #+BEGIN_SRC sh -export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos -#export NIX_PATH=nixpkgs=<> +export NIX_PATH=<> +#export NIX_PATH=<> ## reload when these files change use flake watch_file flake.nix @@ -2134,6 +2135,7 @@ eval "$(nix print-dev-env)" # echo $NIX_BUILD_TOP export SpineVER=$(git describe --long --tags | sed 's/^[ a-z_-]\+\([0-9.]\+\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g') export SpineSRC=<> +export SpineBIN=<> export SpineDOC=<> export SpineOUT=<> export SpineOUTstatic=<> @@ -2163,92 +2165,99 @@ echo ' nix-instantiate | nix show-derivation | jq nix-instantiate | nix show-derivation --recursive | jq + nix search --json 2>/dev/null |jq + ,* version and build info ' >> SHELL_NIX_NOTE_ echo " spine version (git) == $SpineVER" >> SHELL_NIX_NOTE_ echo " nix-instantiate == `nix-instantiate`" >> SHELL_NIX_NOTE_ -echo ' +echo " ,* initialised shell variables - SpineSRC=<> - SpineDOC=<> - SpineOUT=<> - SpineOUTstatic=<> + SpineSRC=$SpineSRC + SpineDOC=$SpineDOC + SpineOUT=$SpineOUT + SpineOUTstatic=$SpineOUTstatic +" >> SHELL_NIX_NOTE_ -,* spine run instruction examples +echo '* spine run instruction examples ,** parallelized tasks - doc source - $SpineSRC/result/bin/spine --very-verbose --pod --source --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --very-verbose --pod --source --output="$SpineOUT" $SpineDOC/markup/pod/* - html & epub output - $SpineSRC/result/bin/spine --very-verbose --html --epub --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --very-verbose --html --epub --output="$SpineOUT" $SpineDOC/markup/pod/* - sqlite db for each document - populate each db - $SpineSRC/result/bin/spine --very-verbose --sqlite-discrete --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --very-verbose --sqlite-discrete --output="$SpineOUT" $SpineDOC/markup/pod/* - doc source; html, epub; sqlite outputs - $SpineSRC/result/bin/spine --verbose --pod --html --epub --sqlite-discrete --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --verbose --pod --html --epub --sqlite-discrete --output="$SpineOUT" $SpineDOC/markup/pod/* - harvest (authors topics) - $SpineSRC/result/bin/spine --very-verbose --harvest --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --very-verbose --harvest --output="$SpineOUT" $SpineDOC/markup/pod/* - html, harvest - $SpineSRC/result/bin/spine --verbose --dark --html --html-link-harvest --harvest --output="$SpineOUT" $SpineDOC/markup/pod/* - $SpineSRC/result/bin/spine --very-verbose --html --html-link-harvest --harvest --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --verbose --dark --html --html-link-harvest --harvest --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --very-verbose --html --html-link-harvest --harvest --output="$SpineOUT" $SpineDOC/markup/pod/* - composite command: source pod, html, epub, harvest, sqlite - $SpineSRC/result/bin/spine --verbose --dark --pod --epub --html --html-link-harvest --harvest --sqlite-discrete --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --verbose --dark --pod --epub --html --html-link-harvest --harvest --sqlite-discrete --output="$SpineOUT" $SpineDOC/markup/pod/* ,** sequential tasks - sqlite db (shared) - create db - $SpineSRC/result/bin/spine --very-verbose --sqlite-db-create --output="$SpineOUT" + $SpineBIN/spine --very-verbose --sqlite-db-create --output="$SpineOUT" - sqlite db (shared) - populate db - $SpineSRC/result/bin/spine --very-verbose --sqlite-update --output="$SpineOUT" $SpineDOC/spine-markup-samples/markup/pod/* + $SpineBIN/spine --very-verbose --sqlite-update --output="$SpineOUT" $SpineDOC/spine-markup-samples/markup/pod/* - sqlite db (shared) - drop db - $SpineSRC/result/bin/spine --very-verbose --sqlite-db-drop --output="$SpineOUT" + $SpineBIN/spine --very-verbose --sqlite-db-drop --output="$SpineOUT" - sqlite db (shared) - create & populate db (single step) - $SpineSRC/result/bin/spine --very-verbose --sqlite-db-create --sqlite-update --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --very-verbose --sqlite-db-create --sqlite-update --output="$SpineOUT" $SpineDOC/markup/pod/* - composite command: source pod, html, epub, harvest, sqlite - $SpineSRC/result/bin/spine --verbose --no-parallel --dark --pod --epub --html --html-link-harvest --harvest --sqlite-discrete --output="$SpineOUT" $SpineDOC/markup/pod/* + $SpineBIN/spine --verbose --no-parallel --dark --pod --epub --html --html-link-harvest --harvest --sqlite-discrete --output="$SpineOUT" $SpineDOC/markup/pod/* -,** cgi operations (output to $SpineOUTstatic /var/www) +,** config [./pod/].dr/config_local_site cat $SpineDOC/markup/pod/.dr/config_local_site - $SpineSRC/result/bin/spine --show-config $SpineDOC/markup/pod - $SpineSRC/result/bin/spine --show-config --output="$SpineOUT" $SpineDOC/markup/pod + $SpineBIN/spine --show-config $SpineDOC/markup/pod + $SpineBIN/spine --show-config --output="$SpineOUT" $SpineDOC/markup/pod -,** cgi operations (output to /var/www) +,** cgi operations (output to $SpineOUTstatic /var/www) - $SpineSRC/result/bin/spine --very-verbose --sqlite-db-create --output="$SpineOUTstatic" $SpineDOC/markup/pod/* + $SpineBIN/spine --very-verbose --sqlite-db-create --output="$SpineOUTstatic" $SpineDOC/markup/pod/* - $SpineSRC/result/bin/spine -v --cgi-search-form-codegen --output=$SpineOUTstatic/html $SpineDOC/markup/pod/* + $SpineBIN/spine -v --cgi-search-form-codegen --output=$SpineOUTstatic $SpineDOC/markup/pod/* - $SpineSRC/result/bin/spine -v --show-config --config=$SpineDOC/markup/pod/.dr + $SpineBIN/spine -v --show-config --config=$SpineDOC/markup/pod/.dr - $SpineSRC/result/bin/spine --html $SpineDOC/markup/pod/* + $SpineBIN/spine --html $SpineDOC/markup/pod/* - $SpineSRC/result/bin/spine -v --sqlite-db-create --sqlite-filename="spine.search.db" --output="$SpineOUTstatic/html" $SpineDOC/markup/pod/* + $SpineBIN/spine -v --sqlite-db-create --sqlite-filename="spine.search.db" --output="$SpineOUTstatic" $SpineDOC/markup/pod/* - $SpineSRC/result/bin/spine -v --sqlite-db-create --sqlite-filename="spine.search.db" --cgi-sqlite-search-filename="spine-search" --output=$SpineOUTstatic/html $SpineDOC/markup/pod/* + $SpineBIN/spine -v --sqlite-db-create --sqlite-filename="spine.search.db" --cgi-sqlite-search-filename="spine-search" --output=$SpineOUTstatic $SpineDOC/markup/pod/* + $SpineBIN/spine -v --sqlite-db-recreate --sqlite-filename="spine.search.db" --cgi-sqlite-search-filename="spine-search" --output=$SpineOUTstatic $SpineDOC/markup/pod/* - $SpineSRC/result/bin/spine -v --sqlite-db-recreate --sqlite-filename="spine.search.db" --cgi-sqlite-search-filename="spine-search" --output=$SpineOUTstatic/html $SpineDOC/markup/pod/* + $SpineBIN/spine -v --sqlite-update --sqlite-filename="spine.search.db" --output=$SpineOUTstatic $SpineDOC/markup/pod/* - $SpineSRC/result/bin/spine -v --sqlite-update --sqlite-filename="spine.search.db" --output=$SpineOUTstatic/html $SpineDOC/markup/pod/* + $SpineBIN/spine -v --cgi-search-form-codegen --config=$SpineDOC/markup/pod/.dr/config_local_site - - make search form - $SpineSRC/result/bin/spine -v --cgi-search-form-codegen --config=$SpineDOC/markup/pod/.dr/config_local_site - generate html linked to search form - $SpineSRC/result/bin/spine -v --html --html-link-search --html-link-harvest --harvest --output=$SpineOUTstatic/html $SpineDOC/markup/pod/* + $SpineBIN/spine -v --html --html-link-search --html-link-harvest --harvest --output=$SpineOUTstatic $SpineDOC/markup/pod/* + + - populate sqlite db + $SpineBIN/spine -v --sqlite-db-recreate --sqlite-filename="spine.search.db" --cgi-sqlite-search-filename="spine-search" --sqlite-update --output=$SpineOUTstatic $SpineDOC/markup/pod/* + + - make search form + $SpineBIN/spine -v --cgi-search-form-codegen --config=$SpineDOC/markup/pod/.dr/config_local_site --output=$SpineOUTstatic ' >> SHELL_NIX_NOTE_ cat SHELL_NIX_NOTE_ echo "cat SHELL_NIX_NOTE_" - #+END_SRC **** nixpkgs_path SETUP @@ -2279,11 +2288,26 @@ echo "cat SHELL_NIX_NOTE_" - local path SET WARN +#+NAME: nix_path_channel +#+BEGIN_SRC nix +/nix/var/nix/profiles/per-user/root/channels/nixos +#+END_SRC + +#+NAME: nix_path_directory +#+BEGIN_SRC nix +nixpkgs=<> +#+END_SRC + #+NAME: project_path_local_src #+BEGIN_SRC nix /grotto-ra/repo/git.repo/projects/project-spine/doc-reform #+END_SRC +#+NAME: project_path_local_bin +#+BEGIN_SRC nix +<>/result/bin +#+END_SRC + #+NAME: project_path_local_doc #+BEGIN_SRC nix /grotto-ra/repo/git.repo/projects/project-spine/doc-reform-markup/spine-markup-samples @@ -2291,11 +2315,21 @@ echo "cat SHELL_NIX_NOTE_" #+NAME: project_path_local_out #+BEGIN_SRC nix +/srv/www/spine/$SpineVER +#+END_SRC + +#+NAME: project_path_local_out_ +#+BEGIN_SRC nix /tmp/spine/$SpineVER/www #+END_SRC #+NAME: project_path_local_out_static #+BEGIN_SRC nix +/srv/www/spine/static +#+END_SRC + +#+NAME: project_path_local_out_static_ +#+BEGIN_SRC nix /var/www #+END_SRC @@ -2315,13 +2349,22 @@ nix develop nix flake update +#+NAME: nixpkgs_url +#+BEGIN_SRC nix +github:nixos/nixpkgs +#+END_SRC + +#+BEGIN_SRC nix +<> +#+END_SRC + #+HEADER: :tangle ../flake.nix #+BEGIN_SRC nix { description = "a sisu like document parser"; inputs = { flake-utils.url = "github:numtide/flake-utils"; - nixpkgs.url = "/nixpkgs-ra/nixpkgs"; + nixpkgs.url = "<>"; }; outputs = { self, nixpkgs, flake-utils }: let @@ -2346,7 +2389,7 @@ nix flake update description = "a sisu like document parser"; inputs = { flake-utils.url = "github:numtide/flake-utils"; - nixpkgs.url = "/nixpkgs-ra/nixpkgs"; + nixpkgs.url = "<>"; d2sqlite3 = { url = "github:dlang-community/d2sqlite3"; flake = false; @@ -2388,7 +2431,7 @@ nix flake update description = "a sisu like document parser"; inputs = { flake-utils.url = "github:numtide/flake-utils"; - nixpkgs.url = "/nixpkgs-ra/nixpkgs"; + nixpkgs.url = "<>"; # pkgs /nixpkgs-ra/nixpkgs {} #spine.url = "/grotto-ra/repo/git.repo/projects/project-spine/doc-reform"; #spine.url = "./."; @@ -2433,6 +2476,8 @@ nix flake update shell.nix -I .envrc shell.nix + nix develop + nix-build nix-build -I nixpkgs= nix-build -I .envrc @@ -2454,21 +2499,19 @@ nix flake update #+BEGIN_SRC nix { pkgs ? import {} }: pkgs.mkShell { - buildInputs = with pkgs; [ - ( - with pkgs; [ - nixFlakes - rund - dub - ldc - sqlite - nix-prefetch-git - validatePkgConfig - jq - git - ] - ) - ]; + buildInputs = with pkgs; [( + with pkgs; [ + nixFlakes + rund + dub + ldc + sqlite + nix-prefetch-git + validatePkgConfig + jq + git + ] + )]; shellHook = '' if [[ -e ".envrc" ]]; then source .envrc @@ -2605,8 +2648,7 @@ mkDubDerivation rec { version = "<>"; src = ./.; buildInputs = [ - pkgs.sqlite - ( + pkgs.sqlite ( with pkgs; [ nixFlakes rund @@ -2747,7 +2789,8 @@ git * .gitignore :gitignore: -#+BEGIN_SRC sh :tangle ../.gitignore +#+HEADER: :tangle "../.gitignore" +#+BEGIN_SRC sh # git ls-files --others --exclude-from=.git/info/exclude ,* !.gitignore @@ -2769,8 +2812,8 @@ git !man !man/** !org -!misc -!misc/** +!sundry +!sundry/** !*.nix !nix !nix/** @@ -2822,7 +2865,7 @@ tmp/** #.reggae/** #+END_SRC -* misc +* sundry misc ** sh script to batch process _emacs org babel tangle_ :shell_script:tangle: [[https://orgmode.org/manual/Batch-execution.html]] creates a shell batch script called "tangle", that will tangle (emacs org diff --git a/org/spine_info.org b/org/spine_info.org index 0729e60..5e7ff86 100644 --- a/org/spine_info.org +++ b/org/spine_info.org @@ -4771,7 +4771,7 @@ matches are found. - Copyright: (C) 2008 - 2021 Adam D. Ruppe - - code: cgi.d (copy in ./misc/ext_lib/src/arsd/) + - code: cgi.d (copy in ./sundry/ext_lib/src/arsd/) aria2c https://raw.githubusercontent.com/adamdruppe/arsd/master/cgi.d - License: BSL-1.0 diff --git a/org/util_cgi_d_sqlite_search.org b/org/util_cgi_d_sqlite_search.org index 9ce40e3..2d38329 100644 --- a/org/util_cgi_d_sqlite_search.org +++ b/org/util_cgi_d_sqlite_search.org @@ -26,7 +26,7 @@ dub --force --compiler=ldc2 && sudo cp -v cgi-bin/spine-search /usr/lib/cgi-bin/ ** set program tangle -#+HEADER: :tangle "../misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d" +#+HEADER: :tangle "../sundry/util/d/cgi/search/src/spine_cgi_sqlite_search.d" #+BEGIN_SRC d <> <> @@ -1212,7 +1212,7 @@ LIMIT %s OFFSET %s * cgi-search dub.sdl -#+HEADER: :tangle "../misc/util/d/cgi/search/dub.sdl" +#+HEADER: :tangle "../sundry/util/d/cgi/search/dub.sdl" #+BEGIN_SRC d name "spine_search" description "A minimal D application." @@ -1245,7 +1245,7 @@ configuration "default" { * cgi-search README -#+HEADER: :tangle "../misc/util/d/cgi/search/README" +#+HEADER: :tangle "../sundry/util/d/cgi/search/README" #+BEGIN_SRC text change db name to match name of db you create cv.db_selected = "spine.search.sql.db"; diff --git a/org/util_cgi_rb_fcgi_sqlite_search.org b/org/util_cgi_rb_fcgi_sqlite_search.org index 4bfdf5f..5e1d058 100644 --- a/org/util_cgi_rb_fcgi_sqlite_search.org +++ b/org/util_cgi_rb_fcgi_sqlite_search.org @@ -34,7 +34,7 @@ document home currently at /var/www/html (better placed at /var/www or srv/proje *** sqlite cgi search TODO **** head -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+HEADER: :tangle-mode (identity #o755) #+HEADER: :shebang #!/usr/bin/env ruby #+BEGIN_SRC ruby @@ -95,7 +95,7 @@ document home currently at /var/www/html (better placed at /var/www or srv/proje **** initialize -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby begin require 'cgi' @@ -122,7 +122,7 @@ end **** form ***** initialize form -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby class Form def initialize(base,search_field,selected_db,result_type,checked_sql_limit,checked_tip,checked_stats,checked_searched,checked_url,checked_case,checked_echo,checked_sql,checked_all,checked_none,checked_selected,checked_default,search_note,the_can='') @@ -139,7 +139,7 @@ class Form ***** submission form -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def submission_form search_form =<<-WOK @@ -225,7 +225,7 @@ end **** search request ***** initialize request -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby class SearchRequest #% search_for attr_accessor :text1,:fulltext,:keywords,:title,:author,:topic_register,:subject,:description,:publisher,:editor,:contributor,:date,:type,:format,:identifier,:source,:language,:relation,:coverage,:rights,:comment,:abstract,:owner,:date_created,:date_issued,:date_modified,:date_available,:date_valid,:src_filename_base @@ -301,7 +301,7 @@ class SearchRequest #% sea ***** text to match -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def text_to_match(identifier='') m={ @@ -327,7 +327,7 @@ end **** search string -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby class DBI_SearchString def initialize(l,t,q,cse=false) @@ -356,7 +356,7 @@ end **** search statement ***** init -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby class DBI_SearchStatement attr_reader :text_search_flag,:sql_select_body_format,:sql_offset,:sql_limit @@ -464,7 +464,7 @@ class DBI_SearchStatement ***** misc -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def sql_offset @@offset @@ -552,7 +552,7 @@ class DBI_SearchStatement ***** select statement -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def sql_select_body limit ||= @@limit @@ -578,7 +578,7 @@ end **** tail -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby def tail <<-'WOK' @@ -683,7 +683,7 @@ end **** fcgi each ***** init & start loop -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby @tail=tail @counter_txt_doc,@counter_txt_ocn,@counter_endn_doc,@counter_endn_ocn=0,0,0,0 @@ -759,7 +759,7 @@ FCGI.each_cgi do |cgi| ***** canned search -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby #Canned_search.new(@base,@search_for.text1,cgi) if @search_for.text1=~/\S+/ or @search_for.fulltext=~/\S+/ or @search_for.author=~/\S+/ or @search_for.topic_register=~/\S+/ #and search_field =~/\S/ @@ -861,7 +861,7 @@ FCGI.each_cgi do |cgi| ***** submission form -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby @header = Form.new(@base,search_field,selected_db,result_type,checked_sql_limit,checked_tip,checked_stats,checked_searched,checked_url,checked_case,checked_echo,checked_sql,checked_all,checked_none,checked_selected,checked_default,search_note,the_can).submission_form #% form unless q['s1'] =~/\S/ or q['au'] =~/\S/ or @search[:text][1] =~/\S/ @@ -957,7 +957,7 @@ FCGI.each_cgi do |cgi| ***** contents each, text body -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby #% text_objects_body s_contents.each do |c| #% text body @@ -1054,7 +1054,7 @@ FCGI.each_cgi do |cgi| ***** after -#+HEADER: :tangle "../misc/util/rb/cgi/spine.search.cgi" +#+HEADER: :tangle "../sundry/util/rb/cgi/spine.search.cgi" #+BEGIN_SRC ruby olduid = "" offset=dbi_statement.sql_offset.to_s diff --git a/org/util_spine_markup_conversion_from_sisu.org b/org/util_spine_markup_conversion_from_sisu.org index d6f51c6..4b7a997 100644 --- a/org/util_spine_markup_conversion_from_sisu.org +++ b/org/util_spine_markup_conversion_from_sisu.org @@ -20,14 +20,14 @@ ** README -#+HEADER: :tangle "../misc/util/d/tools/markup_conversion/README" +#+HEADER: :tangle "../sundry/util/d/tools/markup_conversion/README" #+BEGIN_SRC text #+END_SRC ** endnotes, inline from binary *** tangle -#+HEADER: :tangle "../misc/util/d/tools/markup_conversion/endnotes_inline_from_binary.d" +#+HEADER: :tangle "../sundry/util/d/tools/markup_conversion/endnotes_inline_from_binary.d" #+HEADER: :tangle-mode (identity #o755) #+HEADER: :shebang #!/usr/bin/env rdmd #+BEGIN_SRC d @@ -207,7 +207,7 @@ if (endnotes.length == endnote_ref_count) { ** conversion from sisu (sisu bespoke headers) any binary to inline notes TODO *** tangle -#+HEADER: :tangle "../misc/util/d/tools/markup_conversion/markup_conversion_from_sisu_ruby_to_sisu_spine.d" +#+HEADER: :tangle "../sundry/util/d/tools/markup_conversion/markup_conversion_from_sisu_ruby_to_sisu_spine.d" #+HEADER: :tangle-mode (identity #o755) #+HEADER: :shebang #!/usr/bin/env rdmd #+BEGIN_SRC d @@ -668,7 +668,7 @@ foreach (paragraph; paragraphs) { ** conversion from sisu and multiple headers (sisu bespoke, sdlang, toml) incomplete *** tangle -#+HEADER: :tangle "../misc/util/d/tools/markup_conversion/markup_changes_header_and_content.d" +#+HEADER: :tangle "../sundry/util/d/tools/markup_conversion/markup_changes_header_and_content.d" #+HEADER: :tangle-mode (identity #o755) #+HEADER: :shebang #!/usr/bin/env rdmd #+BEGIN_SRC d diff --git a/org/util_spine_syntax_highlighting_emacs.org b/org/util_spine_syntax_highlighting_emacs.org index 11741b3..bce3fe2 100644 --- a/org/util_spine_syntax_highlighting_emacs.org +++ b/org/util_spine_syntax_highlighting_emacs.org @@ -20,7 +20,7 @@ ** README -#+HEADER: :tangle "../misc/editor-syntax-etc/emacs/README" +#+HEADER: :tangle "../sundry/editor-syntax-etc/emacs/README" #+BEGIN_SRC elisp ; put this into your .emacs file, then use the mode file: @@ -30,7 +30,7 @@ ** autoload sisuspine-mode-autoloads.el -#+HEADER: :tangle "../misc/editor-syntax-etc/emacs/sisu-spine-mode-autoloads.el" +#+HEADER: :tangle "../sundry/editor-syntax-etc/emacs/sisu-spine-mode-autoloads.el" #+BEGIN_SRC elisp (add-to-list 'load-path (or (file-name-directory #$) (car load-path))) (autoload 'sisu-spine-mode "sisu-spine-mode" "\ @@ -46,7 +46,7 @@ and search. ** mode sisu-spine-mode.el -#+HEADER: :tangle "../misc/editor-syntax-etc/emacs/sisu-spine-mode.el" +#+HEADER: :tangle "../sundry/editor-syntax-etc/emacs/sisu-spine-mode.el" #+BEGIN_SRC elisp ;;; sisu-spine-mode.el --- Major mode for SiSU (spine parser) markup text diff --git a/org/util_spine_syntax_highlighting_vim.org b/org/util_spine_syntax_highlighting_vim.org index 1925f73..b8f2c14 100644 --- a/org/util_spine_syntax_highlighting_vim.org +++ b/org/util_spine_syntax_highlighting_vim.org @@ -19,7 +19,7 @@ * Vim Syntax highlighting ** filetype -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/filetype.vim" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/filetype.vim" #+BEGIN_SRC text " SiSU filetype file if exists("did_load_filetypes") @@ -33,7 +33,7 @@ augroup END ** debian vim addon manager -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/vim-sisu.yaml" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/vim-sisu.yaml" #+BEGIN_SRC text #vim-addons: debian vim-addon-manager addon: sisu @@ -47,7 +47,7 @@ files: ** color files *** def.vim -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/colors/def.vim" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/colors/def.vim" #+BEGIN_SRC text " Vim color file " Name: def @@ -276,7 +276,7 @@ endif *** slate.vim -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/colors/slate.vim" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/colors/slate.vim" #+BEGIN_SRC text "%% SiSU Vim color file " Name: Slate @@ -357,7 +357,7 @@ endif *** def-sisu.vim -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/colors/def-sisu.vim" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/colors/def-sisu.vim" #+BEGIN_SRC text " Vim color file " Name: def-sisu @@ -586,7 +586,7 @@ endif *** frugal-cterm.vim -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/colors/frugal-cterm-sisu.vim" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/colors/frugal-cterm-sisu.vim" #+BEGIN_SRC text " Vim color file " Name: frugal-cterm-sisu @@ -658,7 +658,7 @@ endif ** ftplugin sisu.vim -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/ftplugin/sisu.vim" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/ftplugin/sisu.vim" #+BEGIN_SRC text "%% SiSU Vim ftplugin " SiSU Maintainer: Ralph Amissah @@ -889,7 +889,7 @@ endif ** templates *** sst.tpl -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/templates/sst.tpl" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/templates/sst.tpl" #+BEGIN_SRC text # SiSU 8.0 @@ -925,7 +925,7 @@ make: *** ssm.tpl -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/templates/ssm.tpl" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/templates/ssm.tpl" #+BEGIN_SRC text # SiSU 8.0 master @@ -961,7 +961,7 @@ make: *** ssm.tpl -#+HEADER: :tangle "../misc/editor-syntax-etc/vim/templates/ssi.tpl" +#+HEADER: :tangle "../sundry/editor-syntax-etc/vim/templates/ssi.tpl" #+BEGIN_SRC text # SiSU 8.0 insert -- cgit v1.2.3