diff options
author | fenze <contact@fenze.dev> | 2023-02-06 18:05:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 18:05:33 +0100 |
commit | 327344ee40cfd4e17313f0e6be6929cc19a24e17 (patch) | |
tree | a34a0ef56a600758a63f81e67b7e4c4e8af5a0ed /plugins/style/recompute_STYLE_N.sh | |
parent | 584a5d68a833c6fa58dd165ebac83cf4de1e4c0d (diff) | |
parent | b48c504871c4732895b00ae6c2a87c97a63ad3d8 (diff) |
Merge pull request #36 from NunoSempere/feats-and-tweaks
Various feats and tweaks
Diffstat (limited to 'plugins/style/recompute_STYLE_N.sh')
-rwxr-xr-x | plugins/style/recompute_STYLE_N.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/style/recompute_STYLE_N.sh b/plugins/style/recompute_STYLE_N.sh new file mode 100755 index 0000000..906aad8 --- /dev/null +++ b/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" + |