do not use cfg_print() to generate default configuration file: fwrite() the default one
This commit is contained in:
parent
0621a33130
commit
5446071aef
|
@ -59,10 +59,10 @@ CLEANFILES += defconfig.h
|
||||||
BUILT_SOURCES += defconfig.h
|
BUILT_SOURCES += defconfig.h
|
||||||
defconfig.h: awesomerc
|
defconfig.h: awesomerc
|
||||||
@echo "generating defconfig.h from awesomerc"
|
@echo "generating defconfig.h from awesomerc"
|
||||||
@echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h
|
@echo "static const char *AWESOME_DEFAULT_CONFIG = " > defconfig.h
|
||||||
@echo -n "\"" >> defconfig.h
|
@echo -n "\"" >> defconfig.h
|
||||||
@$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "awesomerc" >> defconfig.h
|
@$(SED) 's,\\,\\\\,g;s/$$/ \\n\\/;s/"/\\"/g' "awesomerc" >> defconfig.h
|
||||||
@echo "\"" >> defconfig.h
|
@echo "\";" >> defconfig.h
|
||||||
|
|
||||||
CLEANFILES += uicbgen.h
|
CLEANFILES += uicbgen.h
|
||||||
BUILT_SOURCES += uicbgen.h
|
BUILT_SOURCES += uicbgen.h
|
||||||
|
|
Loading…
Reference in New Issue