diff options
| -rwxr-xr-x[-rw-r--r--] | .envrc | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | .envrc-git-init | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | .envrc-local_ | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | .envrc-nix | 5 | ||||
| -rw-r--r-- | org/config_env.org | 10 | 
5 files changed, 12 insertions, 6 deletions
@@ -1,3 +1,4 @@ +# -*- mode: sh -*-  if [ -f .envrc-git-init ]; then    source_env_if_exists .envrc-git-init || source .envrc-git-init  fi diff --git a/.envrc-git-init b/.envrc-git-init index ca74ec3..d78e46b 100644..100755 --- a/.envrc-git-init +++ b/.envrc-git-init @@ -1,3 +1,4 @@ +# -*- mode: sh -*-  if [[ ! -d ./.git ]]; then    git init    git add . diff --git a/.envrc-local_ b/.envrc-local_ index 9c3d071..f615972 100644..100755 --- a/.envrc-local_ +++ b/.envrc-local_ @@ -1,3 +1,4 @@ +# -*- mode: sh -*-  export SpineVER=$(git describe --long --tags | sed 's/^[ a-z_-]\+\([0-9.]\+\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g')  export SpineBIN=./result/bin/spine  # ❯❯ nix builds spine binary: diff --git a/.envrc-nix b/.envrc-nix index 5f9d33b..443b5ad 100644..100755 --- a/.envrc-nix +++ b/.envrc-nix @@ -1,3 +1,4 @@ +# -*- mode: nix -*-  NIX_ENFORCE_PURITY=1  # - https://github.com/nix-community/nix-direnv  NixDirEnvVersion="3.0.7" @@ -65,9 +66,9 @@ echo '    ❯❯ ${SpineBIN} -v --source --pod --latex --latex-init --epub --html --html-link-pdf --html-link-curate --html-link-markup --curate --output=${SpineOUT} ${SpinePOD}/*    ❯❯ ${SpineBIN} -v --sqlite-db-create --sqlite-db-filename=${SpineSQLdb} --sqlite-db-path=./_tmp-db -  ❯❯ ${SpineBIN} -v --sqlite-update --sqlite-db-filename=${SpineSQLdb} --sqlite-db-path=./_tmp-db ./markup/pod/* +  ❯❯ ${SpineBIN} -v --sqlite-update --sqlite-db-filename=${SpineSQLdb} --sqlite-db-path=./_tmp-db ${SpinePOD}/* -  ❯❯ $SpineBIN --source --pod --curate --text --latex --epub --html --manifest --html-link-search --html-link-pdf --html-link-text --html-link-curate --html-link-markup --html-link-source --html-link-pod --html-link-metadata --cgi-sqlite-search-filename="$SpineCGIform" --cgi-url-action="$SpineSearchActionRemote" --sqlite-db-path="$SpineDBpath" --sqlite-db-filename="$SpineSQLdb" --www-url-doc-root=$SpineURLdocRoot --set-papersize="a4,letter" --output=$SpineOUT $SpinePOD/* +  ❯❯ ${SpineBIN} --source --pod --curate --text --latex --epub --html --manifest --html-link-search --html-link-pdf --html-link-text --html-link-curate --html-link-markup --html-link-source --html-link-pod --html-link-metadata --cgi-sqlite-search-filename="${SpineCGIform}" --cgi-url-action="${SpineSearchActionRemote}" --sqlite-db-path="${SpineDBpath}" --sqlite-db-filename="${SpineSQLdb}" --www-url-doc-root=${SpineURLdocRoot} --set-papersize="a4,letter" --output=${SpineOUT} ${SpinePOD}/*  '  echo "•    ❯❯ ${SpineBIN} -v --source --pod --epub --html --html-link-curate --html-link-markup --curate --output=${SpineOUT} ${SpinePOD}/* diff --git a/org/config_env.org b/org/config_env.org index 3e622ee..3025c08 100644 --- a/org/config_env.org +++ b/org/config_env.org @@ -33,6 +33,7 @@ fi  #+NAME: envrc  #+HEADER: :tangle ../.envrc +#+HEADER: :shebang "# -*- mode: sh -*-"  #+BEGIN_SRC shell  if [ -f .envrc-git-init ]; then    source_env_if_exists .envrc-git-init || source .envrc-git-init @@ -55,6 +56,7 @@ fi      - ${NixDirEnvVersion}  #+HEADER: :tangle ../.envrc-nix +#+HEADER: :shebang "# -*- mode: nix -*-"  #+BEGIN_SRC shell  NIX_ENFORCE_PURITY=1  # - https://github.com/nix-community/nix-direnv @@ -123,9 +125,9 @@ echo '    ❯❯ ${SpineBIN} -v --source --pod --latex --latex-init --epub --html --html-link-pdf --html-link-curate --html-link-markup --curate --output=${SpineOUT} ${SpinePOD}/*    ❯❯ ${SpineBIN} -v --sqlite-db-create --sqlite-db-filename=${SpineSQLdb} --sqlite-db-path=./_tmp-db -  ❯❯ ${SpineBIN} -v --sqlite-update --sqlite-db-filename=${SpineSQLdb} --sqlite-db-path=./_tmp-db ./markup/pod/* +  ❯❯ ${SpineBIN} -v --sqlite-update --sqlite-db-filename=${SpineSQLdb} --sqlite-db-path=./_tmp-db ${SpinePOD}/* -  ❯❯ $SpineBIN --source --pod --curate --text --latex --epub --html --manifest --html-link-search --html-link-pdf --html-link-text --html-link-curate --html-link-markup --html-link-source --html-link-pod --html-link-metadata --cgi-sqlite-search-filename="$SpineCGIform" --cgi-url-action="$SpineSearchActionRemote" --sqlite-db-path="$SpineDBpath" --sqlite-db-filename="$SpineSQLdb" --www-url-doc-root=$SpineURLdocRoot --set-papersize="a4,letter" --output=$SpineOUT $SpinePOD/* +  ❯❯ ${SpineBIN} --source --pod --curate --text --latex --epub --html --manifest --html-link-search --html-link-pdf --html-link-text --html-link-curate --html-link-markup --html-link-source --html-link-pod --html-link-metadata --cgi-sqlite-search-filename="${SpineCGIform}" --cgi-url-action="${SpineSearchActionRemote}" --sqlite-db-path="${SpineDBpath}" --sqlite-db-filename="${SpineSQLdb}" --www-url-doc-root=${SpineURLdocRoot} --set-papersize="a4,letter" --output=${SpineOUT} ${SpinePOD}/*  '  echo "•    ❯❯ ${SpineBIN} -v --source --pod --epub --html --html-link-curate --html-link-markup --curate --output=${SpineOUT} ${SpinePOD}/* @@ -136,6 +138,7 @@ echo "•  ** .envrc-git-init  #+HEADER: :tangle ../.envrc-git-init +#+HEADER: :shebang "# -*- mode: sh -*-"  #+HEADER: :noweb yes  #+BEGIN_SRC shell  if [[ ! -d ./.git ]]; then @@ -162,6 +165,7 @@ SpineProjVer=`rg "Version\((\d+), (\d+), (\d+)\)" views/version.txt | sed -E 's/  - bespoke modify appropriately and generate if needed  #+HEADER: :tangle ../.envrc-local_ +#+HEADER: :shebang "# -*- mode: sh -*-"  #+HEADER: :noweb yes  #+BEGIN_SRC shell  export SpineVER=$(git describe --long --tags | sed 's/^[ a-z_-]\+\([0-9.]\+\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g') @@ -254,8 +258,6 @@ export SpineDBpath=/var/www/sqlite  <<./sisudoc_spine_version_info_and_doc_header_including_copyright_and_license.org:spine_project_version()>>  #+END_SRC -** year -  #+NAME: year  #+HEADER: :noweb yes  #+BEGIN_SRC emacs-lisp  | 
