Bin Library (scripts to maintain libraries)
Go to file
2021-09-01 20:44:37 +01:00
.gitignore chore: add TODO 2021-09-01 20:44:37 +01:00
clean_debug.sh chore: add scripts 2021-09-01 20:44:18 +01:00
clean_targets.sh chore: add scripts 2021-09-01 20:44:18 +01:00
data_test.sh chore: add scripts 2021-09-01 20:44:18 +01:00
lang_test.sh chore: add scripts 2021-09-01 20:44:18 +01:00
LICENSE init repo 2021-09-01 20:39:47 +01:00
README.md init repo 2021-09-01 20:39:47 +01:00
save.sh chore: add scripts 2021-09-01 20:44:18 +01:00
size_targets.sh chore: add scripts 2021-09-01 20:44:18 +01:00
TODO.md chore: add TODO 2021-09-01 20:44:37 +01:00

Bin library

Scripts and tools to maintain this library

Data Test

data_test.sh allows to set environment values to test elements with DscEntries derive to load data and output loaded data.

Use environment vars: DATA_PATH DATA_TARGET DATA_FORMAT DATA_TOTAL DATA_OUT_FORMAT

Example:

data_test.sh dsc/ta/data ta_data.yaml yaml 106 toml

Run in a terminal inside libray/defs/bm/item path with path to data files

lang_test.sh allows to test lang items for elementes

Use environment vars: DATA_LANG_PATH DATA_LANG_TARGET DATA_LANG_FORMAT DATA_LANG_OUT_FORMAT DATA_LANG_SECTION

Example:

lang_test.sh dsc/ta/langs es.yaml yaml toml main 

Run in a terminal inside libray/defs/dsc path with path to lang file directory.

clean_debug Clean all target/debug in library. It should be run in a terminal from inside library root directory.

clean_targets Clean all target directories in library. It should be run in a terminal from inside library root directory.

size_targets.sh List target directories size in library. It should be run in a terminal from inside library root directory.

save.sh To save files in library to a target path. It can use a list-of-files or create a default one excluding "target" and ".git" files.

It should be run in a terminal from inside library root directory.

Usage: save.sh [-v (verbose)] list_files_to_save root_path_to_save

It can use environment variables like:

  • LIST_TO_SAVE
  • TARGET_PATH