Mercurial > hg > nodescore
view svgmods.sh @ 34:710ce76d98fd
if then else based on 1st argument of nodescore script to distinguish local and serverside run
author | rob <rob@rob-1000H.(none)> |
---|---|
date | Thu, 16 Aug 2012 10:22:29 +0100 |
parents | e4d2a8eb1450 |
children | c4719d1b7633 |
line wrap: on
line source
#!/bin/bash ## add reference to external stylesheet to each svg file path="www/m/svg" header='<?xml-stylesheet type="text/css" href="svg-stylesheet.css" ?> ' for i in `ls $path/*.svg`; do # change size - commented out - size can be defined in html sed -i 's/ width="100.00mm" height="40.00mm" viewBox="0 0 103.4646 41.3858"/ width="1000px" height="400px" viewBox="0 0 1000 400"/'g $i #sed -i 's/ width="105.00mm" height="60.00mm" / width="1280px" height="800px" /'g $i echo $header > tmp.svg; cat $i >> tmp.svg ; mv tmp.svg $i; done;