rakelib/install.rake
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 24 May 2016 14:28:08 +0100
changeset 8 659ebd541dd2
parent 7 b6fe3a90f6e0
child 24 ae6fc15070e4
permissions -rw-r--r--
Create extra archives with pre-build stc and librun These archives can be used to rebuild Smalltalk/X environment (or standalone application) without a need for stc and librun sources (which are not disclosed as of now).


task :'install' => [ :'compile',
                     :'install:pre',
                     :'install:main',
                     :'install:post' ]

namespace :'install' do
  task :'pre'
  task :'post'
  task :'main'  
end

task :'artifacts' => [ :'install',
                     :'artifacts:pre',
                     :'artifacts:main',
                     :'artifacts:post' ]

namespace :'artifacts' do
  task :'pre'
  task :'post'
  task :'main' => :'setup' do 
    if File.exist? ARTIFACTS_DIR / BUILD_NAME then
      zip ARTIFACTS_DIR / BUILD_NAME, remove: true
    end
  end
end