rosenrot/plugins/readability/recompute_READABILITY_N.sh
NunoSempere 246128e0c9 feat: save progress.
Now has a functional reader mode.
2022-12-14 16:49:24 +00:00

9 lines
247 B
Bash

#!/bin/bash
function sedr(){
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)
sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N/g"