Merge pull request #374 from crawford/docs

build_library: add extract_docs()
This commit is contained in:
Alex Crawford 2015-01-16 13:12:38 -08:00
commit 103a146c10
2 changed files with 10 additions and 0 deletions

View File

@ -154,6 +154,15 @@ write_packages() {
fi
}
extract_docs() {
local root_fs_dir="$1"
info "Extracting docs"
tar --create --auto-compress --file="${BUILD_DIR}/doc.tar.bz2" \
--directory="${root_fs_dir}/usr/share/coreos" doc
sudo rm --recursive --force "${root_fs_dir}/usr/share/coreos/doc"
}
# Add an entry to the image's package.provided
package_provided() {
local p profile="${BUILD_DIR}/configroot/etc/portage/profile"

View File

@ -47,6 +47,7 @@ create_prod_image() {
extract_prod_gcc "${root_fs_dir}"
emerge_to_image "${root_fs_dir}" "${base_pkg}"
write_packages "${root_fs_dir}" "${BUILD_DIR}/${image_packages}"
extract_docs "${root_fs_dir}"
# Assert that if this is supposed to be an official build that the
# official update keys have been used.