2013-04-04 19:38:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Store the build-time environment and command line arguments
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-04-03 02:24:15 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2013-04-04 19:38:19 +00:00
|
|
|
source $_LIB/die
|
2013-11-29 23:38:49 +00:00
|
|
|
[ -n "$TMP_HOOKS_PATH" ] || die "Temp hook path not set"
|
2013-04-04 19:38:19 +00:00
|
|
|
|
|
|
|
echo "$DIB_ENV" > $TMP_HOOKS_PATH/dib_environment
|
|
|
|
echo "$DIB_ARGS" > $TMP_HOOKS_PATH/dib_arguments
|