aboutsummaryrefslogtreecommitdiff
path: root/plugins/readability/recompute_READABILITY_N.sh
blob: 2e4fc916d75613df921e6e4295599ed572ff47f0 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
sed_wrapper()
{
  find ./ -type f -exec sed -i -e "$1" {} \;
} ## e.g., sedr "s/target/replacement/g"

READABILITY_N=`wc -c readability.js | cut -d " " -f 1`
sed_wrapper "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N + 1000/g"