Module: DGD::Manifest

Defined in:
lib/dgd-tools/manifest.rb

Defined Under Namespace

Classes: AppDirectory, AppFile, DGDRuntimeConfig, GitRepo, GoodsSpec, Repo

Constant Summary collapse

DGD_BUILD_COMMAND =
%(make DEFINES='-DUINDEX_TYPE="unsigned int" -DUINDEX_MAX=UINT_MAX -DEINDEX_TYPE="unsigned short" -DEINDEX_MAX=USHRT_MAX -DSSIZET_TYPE="unsigned int" -DSSIZET_MAX=1048576' install
)
KERNEL_PATH_MAP =
{
    "src/kernel" => "/kernel",
    "src/include" => "/include",
    "src/doc/kernel" => "/doc/kernel"
}
KERNEL_PATHS =
KERNEL_PATH_MAP.values
DEFAULT_KERNELLIB_URL =
"https://github.com/ChatTheatre/kernellib"
GENERATED_ROOT =
".root"

Class Method Summary collapse

Class Method Details

.system_call(cmd) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/dgd-tools/manifest.rb', line 21

def self.system_call(cmd)
    puts "Running command: #{cmd.inspect}..."
    system(cmd, out: $stdout, err: :out)
    unless $?.success?
        raise "Error running command in #{Dir.pwd}: #{cmd.inspect}!"
    end
end