SRC_URI += "file://debian/my_rules.tmpl"
do_my_rules() {
mv ${WORKDIR}/debian/my_rules.tmpl ${WORKDIR}/debian/rules.tmpl
}
addtask my_rules after do_unpack before do_transform_template
This seems a good way to go. Thanks, R-
A more generalised recipe here below
SRC_URI += " \
file://custom/postinst \
file://custom/rules.tmpl \
"
do_custom_debian_dir() {
cd ${WORKDIR}
mkdir -p debian
for i in ${SRC_URI}; do
i=$(echo "$i" | sed -ne "s,file://\(custom/\),\\1,p")
if [ -f "$i" ]; then mv -f $i debian/; fi
done
cd -
}
addtask custom_debian_dir after do_unpack before do_transform_template
do_prepare_build_prepend() {
rm -rf ${S}/debian
}
N.B.: script are not execute by bash thus substring like ${var/this/that/} fails. Uhm, why do not use the bash?
Cheers, R-