From 1c73ddf3894085c646b55d63e61a2483e03a3b4d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 9 Feb 2018 22:03:10 -0500 Subject: 0.24.0 toml or sdlang for configuration --- maker.org | 492 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 488 insertions(+), 4 deletions(-) (limited to 'maker.org') diff --git a/maker.org b/maker.org index c3a50d6..21fbd50 100644 --- a/maker.org +++ b/maker.org @@ -50,7 +50,75 @@ ORG_CONTRIB_VER_AVAILABLE=$(shell echo `ls -d ~/.emacs.d/elpa/org-plus-???????? EMACSLISP_ORG_CONTRIB=~/.emacs.d/elpa/org-plus-contrib-$($(shell echo $(ORG_CONTRIB_VER_AVAILABLE))) ORGFILELIST=$(shell echo `ls -1 maker.org org/*.org`) ORGFILES="" -ORGDIR=$(shell echo `pwd`) +ORGDIR :=$(shell echo `pwd`) +#+END_SRC + +*** Markup Samples +**** pods + +#+BEGIN_SRC makefile :tangle makefile +SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND= \ +find data/sdlang/sisupod -maxdepth 2 -name sisupod.manifest | sort | xargs + +SiSU_MARKUP_SAMPLES_POD_SDL= \ +data/sdlang/sisupod/accelerando.charles_stross \ +data/sdlang/sisupod/alices_adventures_in_wonderland.lewis_carroll \ +data/sdlang/sisupod/content.cory_doctorow \ +data/sdlang/sisupod/democratizing_innovation.eric_von_hippel \ +data/sdlang/sisupod/down_and_out_in_the_magic_kingdom.cory_doctorow \ +data/sdlang/sisupod/for_the_win.cory_doctorow \ +data/sdlang/sisupod/free_as_in_freedom_2.richard_stallman_and_the_free_software_revolution.sam_williams.richard_stallman \ +data/sdlang/sisupod/free_culture.lawrence_lessig \ +data/sdlang/sisupod/free_for_all.peter_wayner \ +data/sdlang/sisupod/gpl2.fsf \ +data/sdlang/sisupod/gpl3.fsf \ +data/sdlang/sisupod/gullivers_travels.jonathan_swift \ +data/sdlang/sisupod/little_brother.cory_doctorow \ +data/sdlang/sisupod/live-manual \ +data/sdlang/sisupod/sisu-manual \ +data/sdlang/sisupod/the_autonomous_contract.ralph_amissah \ +data/sdlang/sisupod/the_cathedral_and_the_bazaar.eric_s_raymond \ +data/sdlang/sisupod/the_public_domain.james_boyle \ +data/sdlang/sisupod/the_wealth_of_networks.yochai_benkler \ +data/sdlang/sisupod/through_the_looking_glass.lewis_carroll \ +data/sdlang/sisupod/two_bits.christopher_kelty \ +data/sdlang/sisupod/un_contracts_international_sale_of_goods_convention_1980 \ +data/sdlang/sisupod/viral_spiral.david_bollier +#+END_SRC + +**** dir + +#+BEGIN_SRC makefile :tangle makefile +SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND= \ +find data/sdlang/sisudir/media/text -name *.ss[tm] | sort | xargs + +SiSU_MARKUP_SAMPLES_DIR_SDL= \ +data/sdlang/sisudir/media/text/accelerando.charles_stross.sst \ +data/sdlang/sisudir/media/text/alices_adventures_in_wonderland.lewis_carroll.sst \ +data/sdlang/sisudir/media/text/content.cory_doctorow.sst \ +data/sdlang/sisudir/media/text/democratizing_innovation.eric_von_hippel.sst \ +data/sdlang/sisudir/media/text/down_and_out_in_the_magic_kingdom.cory_doctorow.sst \ +data/sdlang/sisudir/media/text/ffa_tmp.sst \ +data/sdlang/sisudir/media/text/for_the_win.cory_doctorow.sst \ +data/sdlang/sisudir/media/text/free_as_in_freedom_2.richard_stallman_and_the_free_software_revolution.sam_williams.richard_stallman.sst \ +data/sdlang/sisudir/media/text/free_culture.lawrence_lessig.sst \ +data/sdlang/sisudir/media/text/free_for_all.peter_wayner.sst \ +data/sdlang/sisudir/media/text/gpl2.fsf.sst \ +data/sdlang/sisudir/media/text/gpl3.fsf.sst \ +data/sdlang/sisudir/media/text/gullivers_travels.jonathan_swift.sst \ +data/sdlang/sisudir/media/text/little_brother.cory_doctorow.sst \ +data/sdlang/sisudir/media/text/sisu_markup.sst \ +data/sdlang/sisudir/media/text/sisu_markup_stress_test.sst \ +data/sdlang/sisudir/media/text/sisu_markup_test.sst \ +data/sdlang/sisudir/media/text/table_special_markup.sst \ +data/sdlang/sisudir/media/text/the_autonomous_contract.ralph_amissah.sst \ +data/sdlang/sisudir/media/text/the_cathedral_and_the_bazaar.eric_s_raymond.sst \ +data/sdlang/sisudir/media/text/the_public_domain.james_boyle.sst \ +data/sdlang/sisudir/media/text/the_wealth_of_networks.yochai_benkler.sst \ +data/sdlang/sisudir/media/text/through_the_looking_glass.lewis_carroll.sst \ +data/sdlang/sisudir/media/text/two_bits.christopher_kelty.sst \ +data/sdlang/sisudir/media/text/un_contracts_international_sale_of_goods_convention_1980.sst \ +data/sdlang/sisudir/media/text/viral_spiral.david_bollier.sst #+END_SRC ** _make_ commands [+2] :make:commands: @@ -74,6 +142,24 @@ ORGDIR=$(shell echo `pwd`) **** _dub_ build rebuild :dub: ***** all compiler builds :all:dmd:gdc:ldc: ****** all builds +******* sample markup file list + +#+BEGIN_SRC makefile :tangle makefile +markup_samples: + find data/sdlang/sisupod -name sisupod.manifest | sort; \ +find data/sdlang/sisudir/media/text -name *.ss[tm] | sort +#+END_SRC + +#+BEGIN_SRC makefile :tangle makefile +markup_pod_samples: + find data/sdlang/sisupod -name sisupod.manifest | sort +#+END_SRC + +#+BEGIN_SRC makefile :tangle makefile +markup_dir_samples: + find data/sdlang/sisudir/media/text -name *.ss[tm] | sort +#+END_SRC + ******* quick :quick: ******** default :default: #+BEGIN_SRC makefile :tangle makefile @@ -310,6 +396,352 @@ makefile_new: restart: clean tangle #+END_SRC +*** testrun (program against document markup) +**** pods +***** dmd +****** find files + +#+BEGIN_SRC makefile :tangle makefile +dmd_testrun_find: + ./bin/sdp-dmd -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod \ +data/sdlang/sisupod/sisu-manual +dmd_testrun_find_pod_source: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-ldc -v --source --html --epub \ +--output-dir=tmp/program_output_pod +dmd_testrun_find_pod_sisupod: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-dmd -v --sisupod \ +--output-dir=tmp/program_output_pod +dmd_testrun_find_pod_html: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-dmd -v --html \ +--output-dir=tmp/program_output_pod +dmd_testrun_find_pod_epub: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-dmd -v --epub \ +--output-dir=tmp/program_output_pod +dmd_testrun_find_pod_all: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-dmd -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod +#+END_SRC + +****** path list + +#+BEGIN_SRC makefile :tangle makefile +dmd_testrun_paths_pod_source: + ./bin/sdp-dmd -v --source \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +dmd_testrun_paths_pod_sisupod: + ./bin/sdp-dmd -v --sisupod \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +dmd_testrun_paths_pod_html: + ./bin/sdp-dmd -v --html \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +dmd_testrun_paths_pod_epub: + ./bin/sdp-dmd -v --epub \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +dmd_testrun_paths_pod_all: + ./bin/sdp-dmd -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +#+END_SRC + +***** gdc +****** find files + +#+BEGIN_SRC makefile :tangle makefile +gdc_testrun_find: + ./bin/sdp-gdc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod \ +data/sdlang/sisupod/sisu-manual +gdc_testrun_find_pod_source: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-gdc -v --source \ +--output-dir=tmp/program_output_pod +gdc_testrun_find_pod_sisupod: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-gdc -v --sisupod \ +--output-dir=tmp/program_output_pod +gdc_testrun_find_pod_html: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-gdc -v --html \ +--output-dir=tmp/program_output_pod +gdc_testrun_find_pod_epub: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-gdc -v --epub \ +--output-dir=tmp/program_output_pod +gdc_testrun_find_pod_all: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ +./bin/sdp-gdc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod +#+END_SRC + +****** path list + +#+BEGIN_SRC makefile :tangle makefile +gdc_testrun_paths: + ./bin/sdp-gdc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod \ +data/sdlang/sisupod/sisu-manual +gdc_testrun_paths_pod_source: + ./bin/sdp-gdc -v --source \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +gdc_testrun_paths_pod_sisupod: + ./bin/sdp-gdc -v --sisupod \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +gdc_testrun_paths_pod_html: + ./bin/sdp-gdc -v --html \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +gdc_testrun_paths_pod_epub: + ./bin/sdp-gdc -v --epub \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +gdc_testrun_paths_pod_all: + ./bin/sdp-gdc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +#+END_SRC + +***** ldc +****** find files + +#+BEGIN_SRC makefile :tangle makefile +ldc_testrun_find: + ./bin/sdp-ldc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod \ +data/sdlang/sisupod/sisu-manual +ldc_testrun_find_pod_source: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ + ./bin/sdp-ldc -v --source \ +--output-dir=tmp/program_output_pod +ldc_testrun_find_pod_sisupod: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ + ./bin/sdp-ldc -v --sisupod \ +--output-dir=tmp/program_output_pod +ldc_testrun_find_pod_html: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ + ./bin/sdp-ldc -v --html \ +--output-dir=tmp/program_output_pod +ldc_testrun_find_pod_epub: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ + ./bin/sdp-ldc -v --epub \ +--output-dir=tmp/program_output_pod +ldc_testrun_find_pod_all: + $(SiSU_MARKUP_SAMPLES_PODS_SDL_FOUND) \ + ./bin/sdp-ldc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod +#+END_SRC + +****** path list + +#+BEGIN_SRC makefile :tangle makefile +ldc_testrun_paths: + ./bin/sdp-ldc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod \ +data/sdlang/sisupod/sisu-manual +ldc_testrun_paths_pod_source: + ./bin/sdp-ldc -v --source \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +ldc_testrun_paths_pod_sisupod: + ./bin/sdp-ldc -v --sisupod \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +ldc_testrun_paths_pod_html: + ./bin/sdp-ldc -v --html \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +ldc_testrun_paths_pod_epub: + ./bin/sdp-ldc -v --epub \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +ldc_testrun_paths_pod_all: + ./bin/sdp-ldc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_pod \ +$(SiSU_MARKUP_SAMPLES_POD_SDL) +#+END_SRC + +**** dir +***** dmd +****** find files + +#+BEGIN_SRC makefile :tangle makefile +dmd_testrun_find_dir_source: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-dmd -v --source \ +--output-dir=tmp/program_output_dir +dmd_testrun_find_dir_sisupod: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-dmd -v --sisupod \ +--output-dir=tmp/program_output_dir +dmd_testrun_find_dir_html: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-dmd -v --html \ +--output-dir=tmp/program_output_dir +dmd_testrun_find_dir_epub: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-dmd -v --epub \ +--output-dir=tmp/program_output_dir +dmd_testrun_find_dir_all: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-dmd -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_dir +#+END_SRC + +****** file list + +#+BEGIN_SRC makefile :tangle makefile +dmd_testrun_filelist_dir_source: + ./bin/sdp-dmd -v --source \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +dmd_testrun_filelist_dir_sisupod: + ./bin/sdp-dmd -v --sisupod \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +dmd_testrun_filelist_dir_html: + ./bin/sdp-dmd -v --html \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +dmd_testrun_filelist_dir_epub: + ./bin/sdp-dmd -v --epub \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +dmd_testrun_filelist_dir_all: + ./bin/sdp-dmd -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +#+END_SRC + +***** gdc +****** find files + +#+BEGIN_SRC makefile :tangle makefile +gdc_testrun_find_dir_source: + ./bin/sdp-gdc -v --source \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +gdc_testrun_find_dir_sisupod: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-gdc -v --sisupod \ +--output-dir=tmp/program_output_dir +gdc_testrun_find_dir_html: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-gdc -v --html \ +--output-dir=tmp/program_output_dir +gdc_testrun_find_dir_epub: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-gdc -v --epub \ +--output-dir=tmp/program_output_dir +gdc_testrun_find_dir_all: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-gdc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_dir +#+END_SRC + +****** file list + +#+BEGIN_SRC makefile :tangle makefile +gdc_testrun_filelist_dir_source: + ./bin/sdp-gdc -v --source \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +gdc_testrun_filelist_dir_sisupod: + ./bin/sdp-gdc -v --sisupod \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +gdc_testrun_filelist_dir_html: + ./bin/sdp-gdc -v --html \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +gdc_testrun_filelist_dir_epub: + ./bin/sdp-gdc -v --epub \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +gdc_testrun_filelist_dir_all: + ./bin/sdp-gdc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +#+END_SRC + +***** ldc +****** find files + +#+BEGIN_SRC makefile :tangle makefile +ldc_testrun_find_dir_source: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-ldc -v --source \ +--output-dir=tmp/program_output_dir +ldc_testrun_find_dir_sisupod: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-ldc -v --sisupod \ +--output-dir=tmp/program_output_dir +ldc_testrun_find_dir_html: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-ldc -v --html \ +--output-dir=tmp/program_output_dir +ldc_testrun_find_dir_epub: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-ldc -v --epub \ +--output-dir=tmp/program_output_dir +ldc_testrun_find_dir_all: + $(SiSU_MARKUP_SAMPLES_DIR_SDL_FILES_FOUND) \ +./bin/sdp-ldc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_dir +#+END_SRC + +****** file list + +#+BEGIN_SRC makefile :tangle makefile +ldc_testrun_filelist_dir_source: + ./bin/sdp-ldc -v --source \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +ldc_testrun_filelist_dir_sisupod: + ./bin/sdp-ldc -v --sisupod \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +ldc_testrun_filelist_dir_html: + ./bin/sdp-ldc -v --html \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +ldc_testrun_filelist_dir_epub: + ./bin/sdp-ldc -v --epub \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +ldc_testrun_filelist_dir_all: + ./bin/sdp-ldc -v --source --html --epub --sqlite-discrete \ +--sqlite-create --sqlite-update \ +--output-dir=tmp/program_output_dir \ +$(SiSU_MARKUP_SAMPLES_DIR_SDL) +#+END_SRC + *** org babel tangle batch process command :tangle: **** tangle: org babel tangle *.org @@ -390,6 +822,8 @@ targetPath "./bin" #sourcePath "./src/sdp" stringImportPaths "./views" buildRequirements "allowWarnings" +dependency "toml" version="~>0.4.0-rc.2" +dependency "toml:json" version="~>0.4.0-rc.2" # if not possible to parse toml directly go through json dependency "sdlang-d" version="~>0.10.1" dependency "d2sqlite3" version="~>0.13.1" # https://code.dlang.org/packages/d2sqlite3 http://biozic.github.io/d2sqlite3/d2sqlite3.html subconfiguration "d2sqlite3" "all-included" @@ -638,7 +1072,7 @@ configuration "sdp-ldc-debug" { buildRequirements "allowWarnings" buildOptions "verbose" "debugMode" "debugInfo" "optimize" debugVersions "checkdoc" "summary" - postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-ldc-debug'" + postGenerateCommands "time (./bin/sdp-ldc-debug --source --html --epub -v --output-dir=tmp/program-output data/sisupod/sisu-manual )" "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-ldc-debug'" } #+END_SRC @@ -859,15 +1293,22 @@ time dub --compiler=gdc -v --force !*.txt !*.sst !conf.sdl -!sisu_document_make +!sisupod.manifest +!sisu_document_make.sdl +!config_local_site.sdl +!sisu_document_make.toml +!config_local_site.toml !org !src !src/* +!data +!data/* !sisudoc !views !docs/*.html !**/ **/.#* +tmp/** #!*/ #*~ #\#* @@ -946,7 +1387,7 @@ dub fetch unit-threaded ? sdp ~master: /home/ralph/grotto/repo/git.repo/utils/sdp-x/ /home/ralph/.dub/packages/* -**** TODO build +**** build ***** call dub directly #+BEGIN_SRC sh :tangle no @@ -957,6 +1398,7 @@ dub build -h time (dub --compiler=ldc2 --config=sdp-ldc --debug=checkdoc --debug=summary --debug=dumpdoc) time (dub --compiler=ldc2 --config=sdp-ldc --debug=io) time (dub --compiler=ldc2 --config=sdp-ldc --debug=checkdoc --debug=summary --debug=dumpdoc --debug=io) +time (dub --compiler=ldc2 --config=sdp-ldc --debug=steps --debug=configsdlang) time (dub --compiler=ldc2 --config=sdp-ldc-debug --debug=io) time (dub --compiler=gdc --config=sdp-gdc-debug --debug=io) time (dub --compiler=dmd --config=sdp-dmd-debug --debug=io) @@ -1036,3 +1478,45 @@ time make tangle ldc *** project version echo $(git describe --long --tags | sed 's/^[ a-z_-]\+\([0-9.]\+\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g') + +*** what files changed +git whatchanged --since="1 day ago" --oneline --name-only --pretty=format: | sort -u +git log --since="1 day ago" --name-only --pretty=format: | sort -u + +** test run +*** e.g. +time (./bin/sdp-ldc --source --html -v --output-dir=tmp/program-output data/sdlang/sisupod/sisu-manual/media/text/en/sisu_markup.sst ) + +time (./bin/sdp-ldc --source --html -v --output-dir=tmp/program-output data/sdlang/sisupod/sisu-manual ) +time (./bin/sdp-ldc --source --html -v --output-dir=tmp/program-output data/sdlang/sisupod/the_wealth_of_networks.yochai_benkler ) +time (./bin/sdp-ldc --source --html -v --output-dir=tmp/program-output data/sdlang/sisupod/live-manual ) + +time (~sdp2/bin/sdp-ldc --sisupod --source --html --epub --sqlite-create --sqlite-update -v sisudoc/media/text/en/sisu_markup_stress_test.sst sisudoc/media/text/en/the_wealth_of_networks.yochai_benkler.sst ) + +can point to directory containing sisudoc.txt file (listing which files to process) + +time (~sdp2/bin/sdp-ldc --html -v sisudoc) +# will process source files listed in sisudoc.txt for appropriate files and dir structure + +e.g. live-manual a multilingual document (with source file inserts .ssi) + +time (~sdp2/bin/sdp-ldc --html --lang=en,es -v sisudoc) + +time ( find data/sdlang/sisupod -name sisupod.manifest | sort | xargs ./bin/sdp-ldc --source --html --epub -v --output-dir=tmp/program-output ) + +time ( find data/sdlang/sisupod -maxdepth 2 -name sisupod.manifest | sort | xargs ./bin/sdp-ldc --source --html --epub -v --output-dir=tmp/program-output ) +time ( find data/sdlang/sisudir/media/text -name *.ss[tm] | sort | xargs ./bin/sdp-ldc --source --html --epub -v --output-dir=tmp/program-output ) + +find data/sdlang/sisupod -maxdepth 2 -name sisupod.manifest | sort | xargs + +find data/sdlang/sisudir/media/text -name *.ss[tm] | sort | xargs + +*** list markup files +find data/sdlang/sisupod -name sisupod.manifest | sort +find data/sdlang/sisudir/media/text -name *.ss[tm] | sort + +time make ldc_testrun_paths_pod_sisupod +time make ldc_testrun_paths_pod_sisupod | ag "^\".+\"|NOT found" +time make ldc_testrun_find_pod_sisupod +time make ldc_testrun_find_dir_sisupod +time make ldc_testrun_filelist_dir_sisupod -- cgit v1.2.3