diff options
Diffstat (limited to 's2i/bin/assemble')
-rwxr-xr-x | s2i/bin/assemble | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/s2i/bin/assemble b/s2i/bin/assemble index b269299..9a9242b 100755 --- a/s2i/bin/assemble +++ b/s2i/bin/assemble @@ -27,13 +27,10 @@ echo "---> Building virtio spec ..." echo "---> Move docs output ..." mkdir output cp -av virtio-spec/*.{html,css,pdf} virtio-spec/images output +stylesheet=$(cd output; ls *.css) echo "---> CSS fixup ..." -cat <<EOF >> output/*.css -@import url(kraxel.css); -EOF - -cat <<EOF >> output/kraxel.css +cat <<EOF > output/kraxel.css body { /* no extra long lines please */ max-width: 100ch; @@ -46,9 +43,10 @@ body { border: 2pt #ccc solid; } EOF +cat output/kraxel.css >> output/$stylesheet echo "---> add HEADER ..." -cat <<EOF >> output/HEADER.html +cat <<EOF > output/HEADER.html <h1>virtio specification</h1> <p> Built from <a href="$OPENSHIFT_BUILD_SOURCE">$OPENSHIFT_BUILD_SOURCE</a>, @@ -64,7 +62,7 @@ cat <<EOF >> output/HEADER.html EOF echo "---> add README ..." -cat <<EOF >> output/README.html +cat <<EOF > output/README.html <h3>[debug] build environment</h3> <pre> $(set | egrep '^(OPENSHIFT|DESC|SUMMARY)') |