aboutsummaryrefslogtreecommitdiffhomepage
path: root/.envrc-local_
diff options
context:
space:
mode:
Diffstat (limited to '.envrc-local_')
-rw-r--r--.envrc-local_52
1 files changed, 26 insertions, 26 deletions
diff --git a/.envrc-local_ b/.envrc-local_
index 9c4a881..318d7a7 100644
--- a/.envrc-local_
+++ b/.envrc-local_
@@ -1,10 +1,10 @@
export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos
#export NIX_PATH=/nixpkgs-ra/nixpkgs
# reload when these files change
-watch_file flake.nix
+# watch_file flake.nix
# watch_file flake.lock
## load the flake devShell
-eval "$(nix print-dev-env)"
+# 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=/grotto-ra/repo/git.repo/projects/project-spine/doc-reform
@@ -12,16 +12,16 @@ export SpineBIN=/grotto-ra/repo/git.repo/projects/project-spine/doc-reform/resul
export SpineDOC=/grotto-ra/repo/git.repo/projects/project-spine/doc-reform-markup/spine-markup-samples
export SpinePOD=$SpineDOC/markup/pod
export SpineOUTversioned=/srv/www/spine/$SpineVER
-export SpineOUTstatic=/srv/www/spine/static
+export SpineOUT=/srv/www/spine
echo '-*- mode: org -*-
* nixpkgs path?
- eval "$(nix print-dev-env)"
-' > nix_note_.org
+ # eval "$(nix print-dev-env)"
+' > nixNote_.org
-echo " <nixpkgs> == `nix-instantiate --find-file nixpkgs`" >> nix_note_.org
+echo " <nixpkgs> == `nix-instantiate --find-file nixpkgs`" >> nixNote_.org
echo '
* nix build and show derivation
@@ -45,12 +45,12 @@ nix search --json 2>/dev/null |jq
* version and build info
-#+BEGIN_SRC sh' >> nix_note_.org
+#+BEGIN_SRC sh' >> nixNote_.org
-echo 'spine version (git) == $SpineVER' >> nix_note_.org
-echo "spine version (git) == $SpineVER" >> nix_note_.org
-echo 'nix-instantiate == `nix-instantiate`' >> nix_note_.org
-echo "nix-instantiate == `nix-instantiate`" >> nix_note_.org
+echo 'spine version (git) == $SpineVER' >> nixNote_.org
+echo "spine version (git) == $SpineVER" >> nixNote_.org
+echo 'nix-instantiate == `nix-instantiate`' >> nixNote_.org
+echo "nix-instantiate == `nix-instantiate`" >> nixNote_.org
echo "#+END_SRC
@@ -61,9 +61,9 @@ SpineSRC=$SpineSRC
SpineDOC=$SpineDOC
SpinePOD=$SpinePOD
SpineOUTversioned=$SpineOUTversioned
-SpineOUTstatic=$SpineOUTstatic
+SpineOUT=$SpineOUT
#+END_SRC
-" >> nix_note_.org
+" >> nixNote_.org
echo '* spine run instruction examples
** parallelized tasks
@@ -149,12 +149,12 @@ $SpineBIN/spine --show-config $SpinePOD
$SpineBIN/spine --show-config --output="$SpineOUTversioned" $SpinePOD
#+END_SRC
-** cgi operations (output to $SpineOUTstatic /var/www)
+** cgi operations (output to $SpineOUT /var/www)
#+BEGIN_SRC sh
-$SpineBIN/spine --very-verbose --sqlite-db-create --output="$SpineOUTstatic" $SpinePOD/*
+$SpineBIN/spine --very-verbose --sqlite-db-create --output="$SpineOUT" $SpinePOD/*
-$SpineBIN/spine -v --cgi-search-form-codegen --output=$SpineOUTstatic $SpinePOD/*
+$SpineBIN/spine -v --cgi-search-form-codegen --output=$SpineOUT $SpinePOD/*
$SpineBIN/spine -v --show-config --config=$SpinePOD/.dr
@@ -167,26 +167,26 @@ $SpineBIN/spine -v --cgi-search-form-codegen --config=$SpinePOD/.dr/config_local
*** generate html linked to search form
#+BEGIN_SRC sh
-$SpineBIN/spine -v --html --html-link-search --html-link-curate --curate --output=$SpineOUTstatic $SpinePOD/*
+$SpineBIN/spine -v --html --html-link-search --html-link-curate --curate --output=$SpineOUT $SpinePOD/*
#+END_SRC
*** create or re-create sql db (--sqlite-db-create or --sqlite-db-recreate)
#+BEGIN_SRC sh
-$SpineBIN/spine -v --sqlite-db-create --sqlite-db-filename="spine.search.db" --output="$SpineOUTstatic"
-$SpineBIN/spine -v --sqlite-db-recreate --sqlite-db-filename="spine.search.db" --output="$SpineOUTstatic"
+$SpineBIN/spine -v --sqlite-db-create --sqlite-db-filename="spine.search.db" --output="$SpineOUT/"
+$SpineBIN/spine -v --sqlite-db-recreate --sqlite-db-filename="spine.search.db" --output="$SpineOUT/"
#+END_SRC
*** populate sqlite db
#+BEGIN_SRC sh
-$SpineBIN/spine -v --sqlite-update --sqlite-db-filename="spine.search.db" --output=$SpineOUTstatic $SpinePOD/*
+$SpineBIN/spine -v --sqlite-update --sqlite-db-filename="spine.search.db" --output=$SpineOUT $SpinePOD/*
#+END_SRC
*** generate html (linked to search form), sql output, curate COMPOSITE
#+BEGIN_SRC sh
-$SpineBIN/spine -v --html --html-link-search --html-link-curate --curate --sqlite-update --sqlite-db-filename="spine.search.db" --cgi-sqlite-search-filename="spine_search" --output="$SpineOUTstatic" $SpinePOD/*
+$SpineBIN/spine -v --html --html-link-search --html-link-curate --curate --sqlite-update --sqlite-db-filename="spine.search.db" --cgi-sqlite-search-filename="spine_search" --output="$SpineOUT" $SpinePOD/*
#+END_SRC
*** make search form
@@ -198,12 +198,12 @@ $SpineBIN/spine -v --cgi-search-form-codegen --config=$SpinePOD/.dr/config_local
*** latex
#+BEGIN_SRC sh
-$SpineBIN/spine --latex --serial --output="$SpineOUTstatic" $SpinePOD/*
+$SpineBIN/spine --latex --serial --output="$SpineOUT" $SpinePOD/*
ls $SpineOutstatic/latex/*.tex
#+END_SRC
-' >> nix_note_.org
+' >> nixNote_.org
-cat nix_note_.org
+#cat nixNote_.org
-echo "emacs nix_note_.org"
-echo "cat nix_note_.org"
+#echo "emacs nixNote_.org"
+#echo "cat nixNote_.org"