rosenrot/plugins/style/recompute_STYLE_N.sh
NunoSempere b129954d4d feat: improve compilation a bit.
- tcc -> gcc (noticeably faster compilation)
2023-04-21 19:19:11 -04:00

10 lines
224 B
Bash
Executable File

#!/bin/sh
sed_wrapper()
{
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`
sed_wrapper "s/^#define STYLE_N .*/#define STYLE_N $STYLE_N + 1/g"