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