diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2023-03-28 11:19:11 -0600 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2023-03-28 11:19:11 -0600 |
commit | bbcf1dabd26bb4e93aa4780d1771c3b449c068ec (patch) | |
tree | 375468f139ee1032626969d9965cd18eaaec50e8 /plugins/readability/recompute_READABILITY_N.sh | |
parent | ca59138a2aef96960381f986b8c683634e4d8e63 (diff) |
Revert "tweak: move things around"
This reverts commit ca59138a2aef96960381f986b8c683634e4d8e63.
Diffstat (limited to 'plugins/readability/recompute_READABILITY_N.sh')
-rwxr-xr-x | plugins/readability/recompute_READABILITY_N.sh | 8 |
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" + |