Migrated to libSystem
This commit is contained in:
parent
3c6a584e16
commit
e3c060d9b1
@ -1,7 +1,7 @@
|
||||
TARGETS = configure
|
||||
CFLAGSF = -W -Wall -ansi
|
||||
CFLAGS = -g
|
||||
LDFLAGSF= -lutils
|
||||
LDFLAGSF= -lSystem
|
||||
CC = cc
|
||||
AR = ar rc
|
||||
RANLIB = ranlib
|
||||
|
@ -9,9 +9,7 @@
|
||||
|
||||
/* configure */
|
||||
/* PRE
|
||||
* POST specified directory has been setup
|
||||
* 2 chdir() failed
|
||||
* else other errors occured */
|
||||
* POST specified directory has been setup */
|
||||
static int _configure_config(Config * config);
|
||||
static int _configure(char const * directory)
|
||||
{
|
||||
@ -25,12 +23,12 @@ static int _configure(char const * directory)
|
||||
return 2;
|
||||
}
|
||||
if((config = config_new()) == NULL)
|
||||
return 3;
|
||||
return 2;
|
||||
if(config_load(config, "project.conf") == 0)
|
||||
res = _configure_config(config);
|
||||
else
|
||||
{
|
||||
res = 3;
|
||||
res = 2;
|
||||
fprintf(stderr, "%s%s%s", "configure: ", directory,
|
||||
": Could not open project file\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user