github.com/judwhite/consul@v1.4.4-0.20190315202039-6ef970a191d3/build-support/scripts/functions.sh (about)

     1  #
     2  # NOTE: This file is meant to be sourced from other bash scripts/shells
     3  #
     4  # It provides all the scripting around building Consul and the release process
     5  
     6  pushd $(dirname ${BASH_SOURCE[0]}) > /dev/null
     7  pushd ../functions > /dev/null
     8  FUNC_DIR=$(pwd)
     9  popd > /dev/null
    10  popd > /dev/null
    11  
    12  func_sources=$(find ${FUNC_DIR} -mindepth 1 -maxdepth 1 -name "*.sh" -type f | sort -n)
    13  
    14  for src in $func_sources
    15  do
    16     source $src
    17  done