Commit 0df993fc authored by Daniel Wortmann's avatar Daniel Wortmann

Automatic generation of default_econfig.h in inpgen2

parent 92144684
docs/mkdocs/site
init/compileinfo.h
io/xml/inputSchema.h
inpgen2/default_econfig.h
Testing/*
*~
\#*
......
......@@ -22,7 +22,24 @@ add_subdirectory("inpgen2")
#install(TARGETS fleur inpgen DESTINATION bin)
install(PROGRAMS ${CMAKE_BINARY_DIR}/fleur
install(PROGRAMS ${CMAKE_BINARY_DIR}/fleur
CONFIGURATIONS Debug
DESTINATION bin
RENAME fleur_dbg)
find_program(XXD_PROG xxd)
if (XXD_PROG)
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_SOURCE_DIR}/inpgen2/default_econfig.h
COMMAND ${XXD_PROG} -i default.econfig default_econfig.h
DEPENDS ${CMAKE_SOURCE_DIR}/inpgen2/default.econfig
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/inpgen2/
COMMENT "Putting current default.econfig into default_econfig.h")
else()
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_SOURCE_DIR}/inpgen2/default_econfig.h
COMMAND cp ${CMAKE_SOURCE_DIR}/inpgen2/default_econfig.h.backup ${CMAKE_SOURCE_DIR}/inpgen2/default_econfig.h
COMMENT "No xxd found using backup")
message("No xxd command found! Using backup of default_econfig.h")
endif()
......@@ -470,7 +470,7 @@ unsigned char default_econfig[] = {
0x36, 0x20, 0x33, 0x73, 0x32, 0x20, 0x33, 0x70, 0x36, 0x20, 0x34, 0x73,
0x32, 0x20, 0x33, 0x64, 0x31, 0x30, 0x20, 0x34, 0x70, 0x36, 0x20, 0x35,
0x73, 0x32, 0x20, 0x34, 0x64, 0x31, 0x30, 0x7c, 0x35, 0x70, 0x36, 0x20,
0x36, 0x73, 0x20, 0x32, 0x34, 0x66, 0x37, 0x20, 0x35, 0x64, 0x31, 0x22,
0x36, 0x73, 0x32, 0x20, 0x34, 0x66, 0x37, 0x20, 0x35, 0x64, 0x31, 0x22,
0x20, 0x6c, 0x6f, 0x3d, 0x22, 0x35, 0x70, 0x22, 0x20, 0x2f, 0x0a, 0x26,
0x61, 0x74, 0x6f, 0x6d, 0x20, 0x64, 0x65, 0x73, 0x63, 0x3d, 0x22, 0x54,
0x65, 0x72, 0x62, 0x69, 0x75, 0x6d, 0x20, 0x28, 0x54, 0x62, 0x29, 0x22,
......@@ -478,7 +478,7 @@ unsigned char default_econfig[] = {
0x67, 0x3d, 0x22, 0x31, 0x73, 0x32, 0x20, 0x32, 0x73, 0x32, 0x20, 0x32,
0x70, 0x36, 0x20, 0x33, 0x73, 0x32, 0x20, 0x33, 0x70, 0x36, 0x20, 0x34,
0x73, 0x32, 0x20, 0x33, 0x64, 0x31, 0x30, 0x20, 0x34, 0x70, 0x36, 0x20,
0x35, 0x73, 0x32, 0x20, 0x34, 0x64, 0x31, 0x30, 0x35, 0x7c, 0x70, 0x36,
0x35, 0x73, 0x32, 0x20, 0x34, 0x64, 0x31, 0x30, 0x7c, 0x35, 0x70, 0x36,
0x20, 0x36, 0x73, 0x32, 0x20, 0x34, 0x66, 0x39, 0x22, 0x20, 0x6c, 0x6f,
0x3d, 0x22, 0x35, 0x70, 0x22, 0x20, 0x2f, 0x0a, 0x26, 0x61, 0x74, 0x6f,
0x6d, 0x20, 0x64, 0x65, 0x73, 0x63, 0x3d, 0x22, 0x44, 0x79, 0x73, 0x70,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment