#!/bin/bash -e # # S2I assemble script for the 'kraxel/s2i-jekyll' image. # The 'assemble' script builds your application source so that it is ready to run. # # For more information refer to the documentation: # https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md # if [[ "$1" == "-h" ]]; then exec /usr/libexec/s2i/usage fi echo "--- debug ---" id -a echo "---" export HOME=/opt/app-root/src cd $HOME echo "---> Installing application source ..." rm -rf /tmp/src/.git mv /tmp/src ./virtio-spec echo "---> Building virtio spec ..." (cd virtio-spec; sh makeall.sh) echo "---> Move docs output ..." mkdir output cp -av virtio-spec/*.{html,css,pdf} virtio-spec/images output echo "---> CSS fixup ..." cat <> output/*.css body { /* no extra long lines please */ max-width: 100ch; /* center text */ margin: 0px auto; /* beautify a bit */ padding: 2ex 2em; border: 2pt #ccc solid; } EOF echo "---> add README ..." cat <> output/HEADER.html

virtio specification

Built from $OPENSHIFT_BUILD_SOURCE,
git commit hash is ${OPENSHIFT_BUILD_COMMIT}.


directory index

EOF echo "---> Fix permissions ..." chmod +x . output chmod -R +r . find . | xargs ls -ld