From d301f2a53200cbe9ffcd1b0bf59962c47cc94780 Mon Sep 17 00:00:00 2001 From: Ben Howard Date: Thu, 12 Nov 2015 14:58:28 -0700 Subject: [PATCH] ubuntu-cpc: add ability add arbitrary hooks for extending builds --- live-build/ubuntu-cpc/hooks/999-extras.binary | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 live-build/ubuntu-cpc/hooks/999-extras.binary diff --git a/live-build/ubuntu-cpc/hooks/999-extras.binary b/live-build/ubuntu-cpc/hooks/999-extras.binary new file mode 100755 index 00000000..4e6c7e81 --- /dev/null +++ b/live-build/ubuntu-cpc/hooks/999-extras.binary @@ -0,0 +1,15 @@ +#!/bin/bash +# Execute extra binary hooks. + +my_dir=$(dirname $(readlink -f ${0})) +extra_d=${my_dir}/extra + +if [ ! -d ${my_dir}/extra ]; then + exit 0 +fi + +# Execute extra binary hooks +for recipe in $(find ${extra_d} -type f -executable); +do + bash ${recipe} +done