2022-12-14 16:49:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
function sedr(){
|
|
|
|
find ./ -type f -exec sed -i -e "$1" {} \;
|
|
|
|
} ## e.g., sedr "s/target/replacement/g"
|
|
|
|
|
2022-12-16 00:03:35 +00:00
|
|
|
READABILITY_N=$(wc -c ./plugins/*/readability.js | cut -d " " -f 1)
|
|
|
|
sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N + 1/g"
|
2022-12-14 16:49:24 +00:00
|
|
|
|