X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.functions;h=a96e295ef66e50612eff65e37cc752acb0c81206;hb=905621647268aaf7bc792dfb6a064f06d3c76ba0;hp=732392c66dbd8771afcd522136b66004798f8bd9;hpb=d6bc4599f6a8cd19e11df34a2f3f5a592e7ae49a;p=myplc.git diff --git a/build.functions b/build.functions index 732392c..a96e295 100644 --- a/build.functions +++ b/build.functions @@ -50,43 +50,11 @@ set -x # however this should be in line with the layouts obtained # when running build/vbuild-fedora-mirror.sh -function yum_conf_fedora_core () { - BUILD_HOST=$1; shift - cat < $php - -

Build-time error - could not locate documentation $html

-__header_no_doc__ + template=$build_dir/mirroring/${pl_DISTRO_NAME}/yum.repos.d/building.repo.in + if [ ! -f $template ] ; then + echo "# MyPLC/$0: cannot find template $template" else - # insert header, makes sure we have a trailing eol - (cat << __header_doc__ ; cat $html ) > $php - -__header_doc__ - # ignore ed return status - set +e - # cuts off around the - # preserves the 4 first lines that we just added as a header - ed -s $php << __ed_script__ -/BODY/ -/>/ -s,><,<, -5,-d -$ -?/BODY? -s,><.*,>, -+ -;d -w -q -__ed_script__ - set -e + sed -e s,@MIRRORURL@,http://${BUILD_HOST}/mirror/, $template fi -} +} +