rosenrot/plugins/readability/recompute_READABILITY_N.sh
NunoSempere b129954d4d feat: improve compilation a bit.
- tcc -> gcc (noticeably faster compilation)
2023-04-21 19:19:11 -04:00

10 lines
257 B
Bash
Executable File

#!/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"