This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Namespace Compiler

Overview of the Bash Tools Framework functions and namespaces in the src/Compiler directory

Articles in this section

TitleDescriptionUpdated
Namespace src/Compiler/EmbedDocumentation for src/Compiler/Embed directory2026-03-08

1 - Namespace src/Compiler/Embed

Documentation for src/Compiler/Embed directory

src/Compiler/Embed

Overview

Directory src/Compiler/Embed

file source src/Compiler/Embed/extractDirFromBase64.sh

Compiler::Embed::extractDirFromBase64

convert base64 encoded back to target dir it is advised to include the md5sum of the binFile in the path of the target dir

Arguments
  • $1 (targetDir:string): the directory in which tar archive will be untarred
  • $2 (base64:string): the base64 encoded tar czf archive
Output on stderr
  • diagnostics information is displayed
Requires
  • Linux::requireTarCommand

src/Compiler/Embed/extractFileFromBase64.sh

file source src/Compiler/Embed/extractFileFromBase64.sh

Compiler::Embed::extractFileFromBase64

convert base64 encoded back to target file if target file is executable prepend dir of target file to PATH to make binary available everywhere it is advised to include in the path of the target file the md5sum of the binFile

Arguments
  • $1 (targetFile:String): the file to write
  • $2 (binFileBase64:String): the base64 encoded file
  • $3 (fileMode:String): the chmod to set on the file
Variables set
  • PATH (String): prepend target embedded file binary directory to PATH variable if binary executable