mirror of
https://github.com/vishapoberon/vipak.git
synced 2026-04-05 20:42:26 +00:00
now builds too!
This commit is contained in:
parent
c5c999f596
commit
e38cb20d2c
2 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue