aboutsummaryrefslogtreecommitdiff
path: root/plugins/readability/recompute_READABILITY_N.sh
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:19:11 -0600
committerNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:19:11 -0600
commitbbcf1dabd26bb4e93aa4780d1771c3b449c068ec (patch)
tree375468f139ee1032626969d9965cd18eaaec50e8 /plugins/readability/recompute_READABILITY_N.sh
parentca59138a2aef96960381f986b8c683634e4d8e63 (diff)
Revert "tweak: move things around"
This reverts commit ca59138a2aef96960381f986b8c683634e4d8e63.
Diffstat (limited to 'plugins/readability/recompute_READABILITY_N.sh')
-rwxr-xr-xplugins/readability/recompute_READABILITY_N.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/readability/recompute_READABILITY_N.sh b/plugins/readability/recompute_READABILITY_N.sh
new file mode 100755
index 0000000..85d3352
--- /dev/null
+++ b/plugins/readability/recompute_READABILITY_N.sh
@@ -0,0 +1,8 @@
+#!/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 + 1000/g"
+