From bbe133420aacf1ed7fc9a88702580be1782a1639 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 22 Oct 2020 10:57:37 -0400 Subject: org mode, code-block names --- org/spine_build_scaffold.org | 234 +++++++++++++++++++++---------------------- 1 file changed, 117 insertions(+), 117 deletions(-) (limited to 'org/spine_build_scaffold.org') diff --git a/org/spine_build_scaffold.org b/org/spine_build_scaffold.org index 55d74a2..da1d01f 100644 --- a/org/spine_build_scaffold.org +++ b/org/spine_build_scaffold.org @@ -22,63 +22,63 @@ ** tangle #+BEGIN_SRC makefile :tangle ../makefile -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> -<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> #+END_SRC ** settings [+2] :settings: *** git version stamp :git:version: -#+NAME: makefile_var_0 +#+NAME: make_set_var_0_git_version #+BEGIN_SRC makefile PROG_VER_GIT :=$(shell echo `git describe --long --tags | sed -e "s/^[ a-z_-]\+\([0-9.]\+\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g"`) PROG_VER_DECLARED :=$(shell echo `cat ./views/version.txt | grep --color=never "enum" | sed 's/.\+(\([0-9]\+\),[ \t]\+\([0-9]\+\),[ \t]\+\([0-9]\+\)[ \t]*).\+/\1.\2.\3/g'`) @@ -86,7 +86,7 @@ PROG_VER_DECLARED :=$(shell echo `cat ./views/version.txt | grep --color=never " *** dub (build tool) :dub: -#+NAME: makefile_var_1 +#+NAME: make_set_var_1_dub #+BEGIN_SRC makefile DUB=dub DUB_FLAGS=-v --force --compiler= @@ -94,7 +94,7 @@ DUB_FLAGS=-v --force --compiler= *** Project Details :project:spine: -#+NAME: makefile_var_2 +#+NAME: make_set_var_2_project_details #+BEGIN_SRC makefile PRG_NAME=doc-reform PRG_NICKAME=spine @@ -108,7 +108,7 @@ PRG_DOCDIR=./docs *** Emacs Org settings :settings:emacs:org:tangle: -#+NAME: makefile_var_3 +#+NAME: make_set_var_3_emacs_org #+BEGIN_SRC makefile EMACSLISP=/usr/share/emacs/site-lisp ORG_VER_AVAILABLE=$(shell echo `ls -d ~/.emacs.d/elpa/org-???????? | cut -d '-' -f2`) @@ -123,7 +123,7 @@ ORGDIR :=$(shell echo `pwd`) *** Markup Samples **** pods -#+NAME: makefile_var_4 +#+NAME: make_set_var_4_markup_samples_pods #+BEGIN_SRC makefile SiSU_MARKUP_SAMPLES_FIND_PODS= \ find data/pod -maxdepth 2 -name pod.manifest | cut -f 1-3 -d / | sort @@ -159,7 +159,7 @@ data/pod/viral_spiral.david_bollier **** dir -#+NAME: makefile_var_5 +#+NAME: make_set_var_5_markup_samples_search_dirs #+BEGIN_SRC makefile SiSU_MARKUP_SAMPLES_DIR_FILES_FOUND = \ find data/sisudir/media/text -name *.ss[tm] | sort | xargs @@ -195,20 +195,20 @@ data/sisudir/media/text/viral_spiral.david_bollier.sst ******* sample markup file list -#+NAME: makefile_a_0 +#+NAME: make_find_markup_samples_0_pod_and_dir #+BEGIN_SRC makefile markup_samples: find data/pod -name pod.manifest | cut -f 1-3 -d / | sort; \ find data/sisudir/media/text -name *.ss[tm] | sort #+END_SRC -#+NAME: makefile_a_1 +#+NAME: make_find_markup_samples_1_pod #+BEGIN_SRC makefile markup_pod_samples: find data/pod -name pod.manifest | cut -f 1-3 -d / | sort #+END_SRC -#+NAME: makefile_a_2 +#+NAME: make_find_markup_samples_2_dir #+BEGIN_SRC makefile markup_dir_samples: find data/sisudir/media/text -name *.ss[tm] | sort @@ -237,13 +237,13 @@ markup_dir_samples: ****** all builds ******* default -#+NAME: makefile_b_0 +#+NAME: make_dub_upgrade #+BEGIN_SRC makefile dub_upgrade: $(DUB) upgrade #+END_SRC -#+NAME: makefile_b_1 +#+NAME: make_compile_0_compiler_default #+BEGIN_SRC makefile default: ldc #+END_SRC @@ -251,21 +251,21 @@ default: ldc ******* quick :quick: ******** default :default: -#+NAME: makefile_b_2 +#+NAME: make_compile_1_compiler_all #+BEGIN_SRC makefile all: dmd ldc gdc #+END_SRC ******** version :version: -#+NAME: makefile_b_3 +#+NAME: make_compile_2_compiler_all_versioned #+BEGIN_SRC makefile all_ver: dmd_ver ldc_ver gdc_ver #+END_SRC ******** debug :debug: -#+NAME: makefile_b_4 +#+NAME: make_compile_3_compiler_all_debug #+BEGIN_SRC makefile all_debug: dmd_debug gdc_debug ldc_debug #+END_SRC @@ -276,14 +276,14 @@ meson using dub - works & looks pretty clean - but subprojects built externally & not suitable for debian packaging -#+NAME: makefile_meson +#+NAME: make_meson_build #+BEGIN_SRC makefile meson_clean_build_dir: rm -r build; mkdir build meson_build: meson_clean_build_dir meson --buildtype=debugoptimized build ninja -C build - #notify-send -t 0 'D meson build ldc compiled test release executable ready' 'spine' + notify-send -t 0 'D meson build ldc compiled test release executable ready' 'spine' meson_redo: meson_clean_build_dir meson_build meson_project_build_clean: clean skel tangle dub_upgrade meson_build meson: meson_clean_build_dir dub_upgrade meson_build @@ -292,21 +292,21 @@ meson: meson_clean_build_dir dub_upgrade meson_build ******* clean & tangle :clean:tangle: ******** default :default: -#+NAME: makefile_c_0 +#+NAME: make_clean_tangle_compile_0_all_clean #+BEGIN_SRC makefile all_clean: clean tangle dmd ldc gdc #+END_SRC ******** version :version: -#+NAME: makefile_c_1 +#+NAME: make_clean_tangle_compile_1_all_clean_versioned #+BEGIN_SRC makefile all_ver_clean: clean tangle dmd_ver ldc_ver gdc_ver #+END_SRC ******** debug :debug: -#+NAME: makefile_c_2 +#+NAME: make_clean_tangle_compile_2_all_clean_debug #+BEGIN_SRC makefile all_debug_ver: dmd_debug_ver gdc_debug_ver ldc_debug_ver all_debug_clean_ver: clean tangle dmd_debug_ver gdc_debug_ver ldc_debug_ver @@ -317,16 +317,16 @@ all_debug_clean_ver: clean tangle dmd_debug_ver gdc_debug_ver ldc_debug_ver ******* quick :quick: ******** default :default: -#+NAME: makefile_dmd_0 +#+NAME: make_dub_compile_dmd_0_default #+BEGIN_SRC makefile dmd: dub_upgrade $(DUB) --compiler=dmd --config=dmd --build=release-nobounds - #notify-send -t 0 'D dmd compiled test release executable ready' 'spine-dmd' + notify-send -t 0 'D dmd compiled test release executable ready' 'spine-dmd' #+END_SRC ******** debug :debug: -#+NAME: makefile_dmd_1 +#+NAME: make_dub_compile_dmd_1_debug #+BEGIN_SRC makefile dmd_debug: $(DUB) --compiler=dmd --config=dmd --build=debug @@ -336,18 +336,18 @@ dmd_debug: - assumes git tags with program version -#+NAME: makefile_dmd_2 +#+NAME: make_dub_compile_dmd_2_versioned #+BEGIN_SRC makefile dmd_ver: dub_upgrade $(DUB) --compiler=dmd --config=dmd-version mv bin/spine-dmd-ver bin-archive/spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-dmd - #notify-send -t 0 'D dmd compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-dmd' + notify-send -t 0 'D dmd compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-dmd' dmd_clean_ver: clean tangle dmd_ver #+END_SRC ******* clean & tangle :clean:tangle: -#+NAME: makefile_dmd_3 +#+NAME: make_dub_compile_dmd_3_release #+BEGIN_SRC makefile dmd_rel: expunge skel tangle $(DUB) --compiler=dmd --config=spine-release @@ -362,16 +362,16 @@ dmd_debug_tangle: tangle ******* quick :quick: ******** default :default: -#+NAME: makefile_gdc_0 +#+NAME: make_dub_compile_gdc_0_default #+BEGIN_SRC makefile gdc: dub_upgrade $(DUB) --compiler=gdc --config=gdc - #notify-send -t 0 'D gdc compiled test release executable ready' 'spine-gdc' + notify-send -t 0 'D gdc compiled test release executable ready' 'spine-gdc' #+END_SRC ******** debug :debug: -#+NAME: makefile_gdc_1 +#+NAME: make_dub_compile_gdc_1_debug #+BEGIN_SRC makefile gdc_debug: $(DUB) --compiler=gdc --config=gdc --build=debug @@ -381,18 +381,18 @@ gdc_debug: - assumes git tags with program version -#+NAME: makefile_gdc_2 +#+NAME: make_dub_compile_gdc_2_versioned #+BEGIN_SRC makefile gdc_ver: dub_upgrade $(DUB) --compiler=gdc --config=gdc-version mv bin/spine-gdc-ver bin-archive/spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-gdc - #notify-send -t 0 'D gdc compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-gdc' + notify-send -t 0 'D gdc compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-gdc' gdc_clean_ver: clean tangle gdc_ver #+END_SRC ******* clean & tangle :clean:tangle: -#+NAME: makefile_gdc_3 +#+NAME: make_dub_compile_gdc_3_release #+BEGIN_SRC makefile gdc_rel: expunge skel tangle $(DUB) --compiler=gdc --config=spine-release @@ -407,16 +407,16 @@ gdc_debug_tangle: tangle ******* quick :quick: ******** default :default: -#+NAME: makefile_ldc_0 +#+NAME: make_dub_compile_ldc_0_default #+BEGIN_SRC makefile ldc: dub_upgrade $(DUB) --compiler=ldc2 --config=ldc --build=release - #notify-send -t 0 'D ldc compiled test release executable ready' 'spine-ldc' + notify-send -t 0 'D ldc compiled test release executable ready' 'spine-ldc' #+END_SRC ******** debug :debug: -#+NAME: makefile_ldc_1 +#+NAME: make_dub_compile_ldc_1_debug #+BEGIN_SRC makefile ldc_debug: $(DUB) --compiler=ldc2 --config=ldc --build=debug @@ -426,18 +426,18 @@ ldc_debug: - assumes git tags with program version -#+NAME: makefile_ldc_2 +#+NAME: make_dub_compile_ldc_2_versioned #+BEGIN_SRC makefile ldc_ver: dub_upgrade $(DUB) --compiler=ldc2 --config=ldc-version mv bin/spine-ldc-ver bin-archive/spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-ldc - #notify-send -t 0 'D ldc2 compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-ldc' + notify-send -t 0 'D ldc2 compiled test release executable ready' 'spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)-ldc' ldc_clean_ver: clean tangle ldc_ver #+END_SRC ******* clean & tangle :clean:tangle: -#+NAME: makefile_ldc_3 +#+NAME: make_dub_compile_ldc_3_release #+BEGIN_SRC makefile ldc_rel: expunge skel tangle $(DUB) --compiler=ldc2 --config=spine-release @@ -451,7 +451,7 @@ ldc_debug_tangle: tangle ***** generic ****** init clean distclean etc. :clean: -#+NAME: makefile_d_0 +#+NAME: make_initialization_operations_0_parts #+BEGIN_SRC makefile reinit: clean skel tangle skel: @@ -509,7 +509,7 @@ distclean_and_init: expunge ****** version :version: -#+NAME: makefile_d_1 +#+NAME: make_initialization_operations_1_git_version #+BEGIN_SRC makefile ver: echo spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT) @@ -517,7 +517,7 @@ ver: ****** tangle build rebuild :clean:tangle:build: -#+NAME: makefile_d_2 +#+NAME: make_initialization_operations_2_assemble #+BEGIN_SRC makefile clean_tangle_build: clean tangle build tangle_build: tangle build @@ -535,7 +535,7 @@ restart: clean tangle **** pods ****** find files -#+NAME: makefile_testrun_0 +#+NAME: make_project_testrun_0_find_pods #+BEGIN_SRC makefile find_pods: $(SiSU_MARKUP_SAMPLES_FIND_PODS) @@ -544,7 +544,7 @@ find_pods: ***** dmd ****** find files -#+NAME: makefile_testrun_1 +#+NAME: make_project_testrun_1 #+BEGIN_SRC makefile dmd_testrun_find: ./bin/spine-dmd -v --source --html --epub --sqlite-discrete \ @@ -576,7 +576,7 @@ dmd_testrun_find_pod_all: ****** path list -#+NAME: makefile_testrun_2 +#+NAME: make_project_testrun_2 #+BEGIN_SRC makefile dmd_testrun_paths_pod_source: ./bin/spine-dmd -v --source \ @@ -604,7 +604,7 @@ $(SiSU_MARKUP_SAMPLES_POD) ***** gdc ****** find files -#+NAME: makefile_testrun_3 +#+NAME: make_project_testrun_3 #+BEGIN_SRC makefile gdc_testrun_find: ./bin/spine-gdc -v --source --html --epub --sqlite-discrete \ @@ -636,7 +636,7 @@ gdc_testrun_find_pod_all: ****** path list -#+NAME: makefile_testrun_4 +#+NAME: make_project_testrun_4 #+BEGIN_SRC makefile gdc_testrun_paths: ./bin/spine-gdc -v --source --html --epub --sqlite-discrete \ @@ -669,7 +669,7 @@ $(SiSU_MARKUP_SAMPLES_POD) ***** ldc ****** find files -#+NAME: makefile_testrun_5 +#+NAME: make_project_testrun_5 #+BEGIN_SRC makefile ldc_testrun_find: ./bin/spine-ldc -v --source --html --epub --sqlite-discrete \ @@ -701,7 +701,7 @@ ldc_testrun_find_pod_all: ****** path list -#+NAME: makefile_testrun_6 +#+NAME: make_project_testrun_6 #+BEGIN_SRC makefile ldc_testrun_paths: ./bin/spine-ldc -v --source --html --epub --sqlite-discrete \ @@ -735,7 +735,7 @@ $(SiSU_MARKUP_SAMPLES_POD) ***** dmd ****** find files -#+NAME: makefile_testrun_7 +#+NAME: make_project_testrun_7 #+BEGIN_SRC makefile dmd_testrun_find_dir_source: $(SiSU_MARKUP_SAMPLES_DIR_FILES_FOUND) \ @@ -762,7 +762,7 @@ dmd_testrun_find_dir_all: ****** file list -#+NAME: makefile_testrun_8 +#+NAME: make_project_testrun_8 #+BEGIN_SRC makefile dmd_testrun_filelist_dir_source: ./bin/spine-dmd -v --source \ @@ -790,7 +790,7 @@ $(SiSU_MARKUP_SAMPLES_DIR) ***** gdc ****** find files -#+NAME: makefile_testrun_9 +#+NAME: make_project_testrun_9 #+BEGIN_SRC makefile gdc_testrun_find_dir_source: ./bin/spine-gdc -v --source \ @@ -817,7 +817,7 @@ gdc_testrun_find_dir_all: ****** file list -#+NAME: makefile_testrun_10 +#+NAME: make_project_testrun_10 #+BEGIN_SRC makefile gdc_testrun_filelist_dir_source: ./bin/spine-gdc -v --source \ @@ -845,7 +845,7 @@ $(SiSU_MARKUP_SAMPLES_DIR) ***** ldc ****** find files -#+NAME: makefile_testrun_11 +#+NAME: make_project_testrun_11 #+BEGIN_SRC makefile ldc_testrun_find_dir_source: $(SiSU_MARKUP_SAMPLES_DIR_FILES_FOUND) \ @@ -872,7 +872,7 @@ ldc_testrun_find_dir_all: ****** file list -#+NAME: makefile_testrun_12 +#+NAME: make_project_testrun_12 #+BEGIN_SRC makefile ldc_testrun_filelist_dir_source: ./bin/spine-ldc -v --source \ @@ -900,7 +900,7 @@ $(SiSU_MARKUP_SAMPLES_DIR) *** org babel tangle batch process command :tangle: **** tangle: org babel tangle *.org -#+NAME: makefile_tangle_0 +#+NAME: make_tangle_0 #+BEGIN_SRC makefile tangle: skel for f in $(ORGFILELIST); do \ @@ -924,7 +924,7 @@ tangle: skel **** tangle maker: org babel tangle maker.org, makefile new -#+NAME: makefile_tangle_1 +#+NAME: make_tangle_1 #+BEGIN_SRC makefile tangle_maker: for f in $(ORGFILELIST); do \ @@ -946,7 +946,7 @@ tangle_maker: (kill-buffer)) '($$ORGFILES)))" 2>&1 #+END_SRC -#+NAME: makefile_nix_project_shell +#+NAME: make_nix_project_shell #+BEGIN_SRC makefile nixsh_dmd_nixpkg: ln -sf nixDevEnv/shells/shell-dmd-verNix.nix shell.nix; \ @@ -972,7 +972,7 @@ nixsh_ldc_user: *** git snapshot -#+NAME: makefile_git_snapshot +#+NAME: make_git_snapshot #+BEGIN_SRC makefile gitsnapshot: distclean tangle git commit -a @@ -980,7 +980,7 @@ gitsnapshot: distclean tangle ** phony :phony: -#+NAME: makefile_phony +#+NAME: make_phony #+BEGIN_SRC makefile .PHONY : all build rebuild debug release \ distclean init \ @@ -1136,7 +1136,7 @@ time (dub --compiler=gdc --build=release) #+BEGIN_SRC sh :NO-tangle ../dub.sdl configuration "default" { targetName "spine" - #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine'" + postGenerateCommands "notify-send -t 0 'D executable ready' 'spine'" } #+END_SRC @@ -1148,7 +1148,7 @@ time (dub --compiler=dmd -color --config=dmd --build=dmd-release) #+BEGIN_SRC sh :NO-tangle ../dub.sdl configuration "dmd" { targetName "spine-dmd" - #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-dmd'" + postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-dmd'" } buildType "dmd" { dflags "-J=views" "-I=src/doc_reform" @@ -1163,7 +1163,7 @@ configuration "dmd-version" { dflags "-J=views" "-I=src/doc_reform" buildOptions "verbose" "optimize" targetName "spine-dmd-ver" - #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-dmd-ver'" + postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-dmd-ver'" } #+END_SRC @@ -1179,7 +1179,7 @@ time (dub --compiler=ldc2 -color --config=ldc --build=ldc-release) #+BEGIN_SRC sh :NO-tangle ../dub.sdl configuration "ldc" { targetName "spine-ldc" - #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-ldc'" + postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-ldc'" } buildType "ldc" { dflags "-O2" "-J=views" "-I=src/doc_reform" @@ -1199,7 +1199,7 @@ configuration "ldc-version" { dflags "-O2" "-J=views" "-I=src/doc_reform" buildOptions "verbose" "optimize" "inline" "releaseMode" targetName "spine-ldc-ver" - #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-ldc-ver'" + postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-ldc-ver'" } #+END_SRC @@ -1211,7 +1211,7 @@ time (dub --compiler=gdc --config=gdc --build=gdc-release) #+BEGIN_SRC sh :NO-tangle ../dub.sdl configuration "gdc" { targetName "spine-gdc" - #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-gdc'" + postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-gdc'" } buildType "gdc" { dflags "-O" "-J=views" "-I=src/doc_reform" @@ -1229,7 +1229,7 @@ configuration "gdc-version" { lflags "-lz" buildOptions "verbose" "optimize" "inline" "releaseMode" targetName "spine-gdc-ver" - #postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-gdc-ver'" + postGenerateCommands "notify-send -t 0 'D executable ready' 'spine-gdc-ver'" } #+END_SRC @@ -1244,7 +1244,7 @@ configuration "build" { targetName "bin/spine" dflags "-J=views" "-I=src/doc_reform" buildOptions "verbose" "releaseMode" "optimize" "inline" - #postGenerateCommands "notify-send -t 0 'D release executable ready' 'spine'" + postGenerateCommands "notify-send -t 0 'D release executable ready' 'spine'" } #+END_SRC -- cgit v1.2.3