aboutsummaryrefslogtreecommitdiff
path: root/plugins/style/recompute_STYLE_N.sh
blob: 906aad8e8e6f87a61dc1fbf5604893f3a5e95871 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
function sedr(){
  find ./ -type f -exec sed -i -e "$1" {} \;
} ## e.g., sedr "s/target/replacement/g"

STYLE_N=$(wc -c style.js | cut -d " " -f 1)
sedr "s/^#define STYLE_N .*/#define STYLE_N $STYLE_N + 1/g"