1 /* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
2 * BSD-style license. Please see the COPYING file for details.
7 #include "configuration.h"
10 struct blerg_configuration blergconf;
12 int blerg_configuration_init() {
15 a = getenv("BLERG_PATH");
17 strncpy(blergconf.base_path, BLERG_PATH, FILENAME_MAX);
19 strncpy(blergconf.base_path, a, FILENAME_MAX);
22 snprintf(blergconf.data_path, FILENAME_MAX, "%s/%s", blergconf.base_path, DATA_PATH);
23 snprintf(blergconf.hash_tags_path, FILENAME_MAX, "%s/%s", blergconf.base_path, HASH_TAGS_PATH);
24 snprintf(blergconf.ref_tags_path, FILENAME_MAX, "%s/%s", blergconf.base_path, REF_TAGS_PATH);