X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.functions;h=a96e295ef66e50612eff65e37cc752acb0c81206;hb=dcf3a4d64802583c2cb17ee0c8b4051aac5124cd;hp=44dd1f0a75e6bb4546621a2ba4ff9f9858898d87;hpb=5d728438979a666222270bc4b5253ac572f714d9;p=myplc.git diff --git a/build.functions b/build.functions index 44dd1f0..a96e295 100644 --- a/build.functions +++ b/build.functions @@ -46,37 +46,15 @@ set -e # Be verbose set -x -# Make a basic chroot at the specified location given the specified -# configuration. -make_chroot_from_lst() { - root=$1; shift - fcdistro=$1; shift - - packages=$(pl_getPackagesOptions2 $fcdistro "$@") - groups=$(pl_getGroupsOptions2 $fcdistro "$@") - - pl_setup_chroot $root $packages $groups -} - -# Move specified directories out of the chroot and into a "data" -# directory that will be bind mounted on /data inside the chroot. -#move_datadirs() { -# root=$1 -# data=$2 -# shift 2 -# pl_move_dirs $root $data /data "$@" -#} - -# Make loopback filesystem from specified location -#make_image() { -# root=$1 -# image=$2 -# pl_make_image $root $image 100000000 -#} +# this is fragile, as the actual layout may vary from one mirror to the other +# however this should be in line with the layouts obtained +# when running build/vbuild-fedora-mirror.sh function yum_conf_to_build_host () { - BUILD_HOST=$(hostname) - 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 -} +} +