mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-08 01:11:31 +00:00
ubuntu-cpc: add ability add arbitrary hooks for extending builds
This commit is contained in:
parent
467619d1a1
commit
d301f2a532
15
live-build/ubuntu-cpc/hooks/999-extras.binary
Executable file
15
live-build/ubuntu-cpc/hooks/999-extras.binary
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user