annotate svgmods.sh @ 28:965ea3cd2ae6

added music.html
author tzara <rc-web@kiben.net>
date Tue, 31 Jul 2012 17:01:34 +0100
parents ac9641ecf84f
children e4d2a8eb1450
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@25 5 path="www/m/svg"
rc-web@25 6 header='<?xml-stylesheet type="text/css" href="svg-stylesheet.css" ?> '
rc-web@25 7
rc-web@25 8 for i in `ls $path/*.svg`;
rc-web@25 9 do
rc-web@26 10 # change size - commented out - size can be defined in html
rc-web@26 11 sed -i 's/ width="105.00mm" height="60.00mm" viewBox="0 0 108.6378 62.0787"/ width="1280px" height="800px" viewBox="0 0 1280 800"/'g $i
rc-web@26 12 #sed -i 's/ width="105.00mm" height="60.00mm" / width="1280px" height="800px" /'g $i
rc-web@25 13 echo $header > tmp.svg;
rc-web@25 14 cat $i >> tmp.svg ;
rc-web@25 15 mv tmp.svg $i;
rc-web@26 16 done;