Skip to content

Commit

Permalink
Table to generate error codes and string_of_error function
Browse files Browse the repository at this point in the history
  • Loading branch information
scemama committed Apr 1, 2021
1 parent 0419a8c commit 4e47e49
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 130 deletions.
24 changes: 17 additions & 7 deletions src/build_trex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,35 @@ mkdir -p templates_hdf5/populated

echo "remove existing templates"
rm -f -- templates_front/*.{c,h,f90}
rm -f -- templates_text/*.{c,h}
rm -f -- templates_hdf5/*.{c,h}
rm -f -- templates_text/*.{c,h}
rm -f -- templates_hdf5/*.{c,h}

echo "clean populated directories"
rm -f -- templates_front/populated/*
rm -f -- templates_text/populated/*
rm -f -- templates_hdf5/populated/*
rm -f -- templates_text/populated/*
rm -f -- templates_hdf5/populated/*

function tangle()
{
local command="(org-babel-tangle-file \"$1\")"
emacs --batch \
--eval "(require 'org)" \
--eval "(org-babel-do-load-languages 'org-babel-load-languages '((python . t)))" \
--eval "(setq org-confirm-babel-evaluate nil)" \
--eval "$command"
}

echo "tangle org files to generate templates"
cd templates_front
emacs --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "templator_front.org")'
tangle templator_front.org
cd ..

cd templates_text
emacs --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "templator_text.org")'
tangle templator_text.org
cd ..

cd templates_hdf5
emacs --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "templator_hdf5.org")'
tangle templator_hdf5.org
cd ..

echo "run generator script to populate templates"
Expand Down
Loading

0 comments on commit 4e47e49

Please sign in to comment.