Files
Pmodules/Pmodules/libpbuild_dyn.bash
T
gsell 58359b837e review 'system' feature
- 'system' and 'OS' have different meaning now
  'system' defaults to a string derived from the Linux distribution
  (like rhel7) or on Mac to the macOS version (like macOS10.14)
- OS is equivalent to the output of 'uname -s'
- move dynamically created functions to new library libpbuild_dyn.bash
- do not set defaults in libpbuild.bash
- use the string returned by std::get_os_release() as system string
  if not passed as argument
-
2019-07-19 17:17:23 +02:00

25 lines
857 B
Bash

#!/bin/bash
eval "pbuild::pre_prep_${system}() { :; }"
eval "pbuild::pre_prep_${OS}() { :; }"
eval "pbuild::post_prep_${system}() { :; }"
eval "pbuild::post_prep_${OS}() { :; }"
eval "pbuild::add_patch_${system}() { pbuild::add_patch \"\$@\"; }"
eval "pbuild::add_patch_${OD}() { pbuild::add_patch \"\$@\"; }"
eval "pbuild::pre_configure_${system}() { :; }"
eval "pbuild::pre_configure_${OS}() { :; }"
eval "pbuild::post_configure_${system}() { :; }"
eval "pbuild::post_configure_${OS}() { :; }"
eval "pbuild::pre_compile_${system}() { :; }"
eval "pbuild::pre_compile_${OS}() { :; }"
eval "pbuild::post_compile_${system}() { :; }"
eval "pbuild::post_compile_${OS}() { :; }"
eval "pbuild::pre_install_${system}() { :; }"
eval "pbuild::pre_install_${OS}() { :; }"
eval "pbuild::post_install_${system}() { :; }"
eval "pbuild::post_install_${OS}() { :; }"