st/themesetup
2024-09-02 17:06:19 +04:00

5 lines
247 B
Bash
Executable file

#!/bin/sh
echo \# if $(cat theme.h | cut -d' ' -f3 | sed "s/^/defined /;s/$/ ||/" | tr "\n" " ") 0 > theme_beg.h
echo -e "# error (conflicting macro names)\n# endif" >> theme_beg.h
cat theme.h | cut -d' ' -f3 | sed "s/^/# undef /;" > theme_end.h