aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/style/recompute_STYLE_N.sh
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:18:54 -0600
committerNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:18:54 -0600
commitca59138a2aef96960381f986b8c683634e4d8e63 (patch)
tree16c62f8a2b3bfe7ad55053294095f70a85d19613 /src/plugins/style/recompute_STYLE_N.sh
parentcc959fda4fac18f1c429158d1ffea24692276310 (diff)
tweak: move things around
Diffstat (limited to 'src/plugins/style/recompute_STYLE_N.sh')
-rwxr-xr-xsrc/plugins/style/recompute_STYLE_N.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/style/recompute_STYLE_N.sh b/src/plugins/style/recompute_STYLE_N.sh
new file mode 100755
index 0000000..906aad8
--- /dev/null
+++ b/src/plugins/style/recompute_STYLE_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"
+
+STYLE_N=$(wc -c style.js | cut -d " " -f 1)
+sedr "s/^#define STYLE_N .*/#define STYLE_N $STYLE_N + 1/g"
+