Skip to content

Commit

Permalink
[build] Fixed the build.py generation when no postcommand is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbirccyn committed Nov 2, 2015
1 parent 06331db commit 45a06e6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions goil/templates/build/build_py.goilTemplate
Expand Up @@ -481,12 +481,14 @@ end foreach
%

make.runGoal(maxParallelJobs, maxParallelJobs == 1)

%
foreach pc in exists POSTCOMMAND default (emptylist)
before%
#----------------------------------------------------------------------
#--- post commands if any
#--- post commands
#----------------------------------------------------------------------
if make.errorCount() == 0:%
foreach pc in exists POSTCOMMAND default (emptylist) do%
if make.errorCount() == 0:%
do%
if askedGoal == "% !pc::NAME %" :%
foreach cmd in pc::COMMAND do
let commandLine := cmd::COMMAND . " "
Expand All @@ -513,3 +515,7 @@ foreach pc in exists POSTCOMMAND default (emptylist) do%
end foreach
end foreach%

#----------------------------------------------------------------------
#-- End of build.py
#----------------------------------------------------------------------

0 comments on commit 45a06e6

Please sign in to comment.