summaryrefslogtreecommitdiff
path: root/src/biruda.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-04-09 17:51:39 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-04-09 17:51:39 +0200
commit5a5c7bc43d55b2cd193a1afa9937ae1efd51fc91 (patch)
treeaa155f55dba144a0ff2e3b8e20128bebfddec88a /src/biruda.c
parent9a79a9dfc1a9e0443915813cbfc5db38e151dbd3 (diff)
downloadbiruda-5a5c7bc43d55b2cd193a1afa9937ae1efd51fc91.tar.gz
biruda-5a5c7bc43d55b2cd193a1afa9937ae1efd51fc91.tar.bz2
added local xxd and configuration generation in biruda binary
Diffstat (limited to 'src/biruda.c')
-rw-r--r--src/biruda.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/biruda.c b/src/biruda.c
index 788bc13..f5f6ed0 100644
--- a/src/biruda.c
+++ b/src/biruda.c
@@ -36,6 +36,8 @@
#include "port.h"
+#include "biruda_conf.c"
+
static const char *DEFAULT_CONFIG_FILE = "/etc/biruda/biruda.conf";
static const unsigned int DEFAULT_WEBSERVER_PORT = 8080;
static const char *DEFAULT_WEBSERVER_HOST = "localhost";
@@ -340,6 +342,11 @@ int main( int argc, char *argv[] )
exit( EXIT_FAILURE );
}
+ if( args_info.generate_config_given ) {
+ printf( "%*s", biruda_conf_len, biruda_conf );
+ exit( EXIT_SUCCESS );
+ }
+
if( args_info.guess_env_given ) {
print_guessed_env( args_info.human_readable_given );
exit( EXIT_SUCCESS );