summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ct22
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/ct b/bin/ct
index 338fe8a..b63a3fd 100755
--- a/bin/ct
+++ b/bin/ct
@@ -430,6 +430,28 @@ function run_checklinks {
}
}
+## Hook helper functions
+
+function collect_into_directory {
+ typeset directory=${1}
+ shift
+
+ info "collecting into $directory: $*\n"
+ rm -rf ${directory}
+ mkdir -p ${directory}
+
+ if [[ -e ${1} ]] {
+ ln -s ${*} ${directory}
+ }
+}
+
+function collect_into_file {
+ typeset out=${1}
+ shift
+
+ info "collecting into ${out}: ${*}\n"
+ cat /dev/null ${*} > ${out}
+}
function exec_hook {
typeset package=${1}