now builds too!

This commit is contained in:
Norayr Chilingarian 2022-01-19 04:58:57 +04:00
parent c5c999f596
commit e38cb20d2c
2 changed files with 3 additions and 5 deletions

View file

@ -14,7 +14,6 @@ BEGIN
Strings.Append(" pull ", cmd);
Strings.Append(url, cmd);
i := Platform.System(cmd);
Out.Int(i, 0);
END pull;
PROCEDURE syncTree*(url: ARRAY OF CHAR);

View file

@ -75,14 +75,13 @@ BEGIN
REPEAT
k := keys.GetString(keys, j);
v := values.GetString(values, j);
srcPath := vpkEnv.getSrcRelPath(dep.name^, v^);
cmd := vpkEnv.mkCmd(k^, srcPath^);
Out.String(cmd^); Out.Ln;
res := Platform.Chdir(builddir^);
IF res # 0 THEN
Out.String("failed to change directory to "); Out.String(builddir^); Out.Ln; Out.String("this should never happen."); Out.Ln; HALT(66);
END;
srcPath := vpkEnv.getSrcRelPath(dep.name^, v^);
Out.String(srcPath^); Out.Ln;
cmd := vpkEnv.mkCmd(k^, srcPath^);
Out.String(cmd^);
res := Platform.System(cmd^);
IF res # 0 THEN Out.String("failed to run build command"); Out.Ln END;
INC(j)