annotate svgmods.sh @ 101:52e44ee1c791 tip master

enabled all scores in autostart script
author Rob Canning <rc@kiben.net>
date Tue, 21 Apr 2015 16:20:57 +0100
parents 9bf133b91890
children
rev   line source
rc-web@26 1 #!/bin/bash
rc-web@26 2
rc-web@26 3 ## add reference to external stylesheet to each svg file
rc-web@26 4
rc-web@63 5 path="www/8/svg"
rc-web@25 6 header='<?xml-stylesheet type="text/css" href="svg-stylesheet.css" ?> '
rc-web@25 7
rc-web@31 8
rc-web@31 9
rc-web@25 10 for i in `ls $path/*.svg`;
rc-web@25 11 do
rc-web@26 12 # change size - commented out - size can be defined in html
rc-web@32 13 sed -i 's/ width="100.00mm" height="45.00mm" viewBox="0 0 63.2283 28.4528"/ width="1000px" height="450px" viewBox="0 0 1000 450"/'g $i
rc-web@26 14 #sed -i 's/ width="105.00mm" height="60.00mm" / width="1280px" height="800px" /'g $i
rc-web@25 15 echo $header > tmp.svg;
rc-web@25 16 cat $i >> tmp.svg ;
rc-web@25 17 mv tmp.svg $i;
rc-web@26 18 done;