rosenrot-browser

A hackable browser based on Webkitgtk
Log | Files | Refs | README

recompute_STYLE_N.sh (227B)


      1 #!/bin/sh
      2 sed_wrapper()
      3 {
      4   find ./ -type f -exec sed -i -e "$1" {} \;
      5 } ## e.g., sedr "s/target/replacement/g"
      6 
      7 STYLE_N=`wc -c style.js | cut -d " " -f 1`
      8 sed_wrapper "s/^#define STYLE_N .*/#define STYLE_N $STYLE_N + 1000/g"
      9