Added beginnings of downlaods task.

Reviewed by me.
This commit is contained in:
Francisco Tolmasky committed 2009-03-19 18:25:25 -07:00
1 parent 02a997e28c
commit 661fd3446d
3 files changed
+40 -2

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ ObjectiveJ::BundleTask.new(:AppKit) do |t|
end
#Framework in environment directory
file_d $ENVIRONMENT_PRODUCT => [:AppKit] do
file_d $ENVIRONMENT_PRODUCT => [:AppKit, $THEME_PRODUCT] do
cp_r(File.join($BUILD_PATH, '.'), $ENVIRONMENT_PRODUCT)
end
+31 -1
View File
@@ -13,4 +13,34 @@ subprojects = %w{Objective-J Foundation AppKit Tools}
end
end
#task :deploy => [:build]
$DEBUG_ENV = File.join($BUILD_DIR, 'Release', 'env')
$RELEASE_ENV = File.join($BUILD_DIR, 'Release', 'env')
$TOOLS_ENV = File.join($BUILD_DIR, 'Cappuccino', 'Tools', 'objj')
$STARTER_DOWNLOAD = File.join($BUILD_DIR, 'Cappuccino', 'Starter')
$STARTER_APPLICATION = File.join($BUILD_DIR, 'Cappuccino', 'Starter', 'NewApplication')
task :downloads => [:starter_download, :tools_download]
file_d $TOOLS_ENV => [:debug, :release] do
cp_r(File.join($RELEASE_ENV, '.'), $TOOLS_ENV)
cp_r(File.join($DEBUG_ENV, 'lib', 'Frameworks', '.'), File.join($TOOLS_ENV, 'lib', 'Frameworks', 'Debug'))
end
task :tools_download => [$TOOLS_ENV]
task :starter_download => [$STARTER_APPLICATION]
file_d $STARTER_APPLICATION => [$TOOLS_ENV] do
ENV['PATH'] = "#{File.join($TOOLS_ENV, 'bin')}:#{ENV['PATH']}"
rm_rf($STARTER_APPLICATION)
mkdir_p($STARTER_DOWNLOAD)
system %{capp #{$STARTER_APPLICATION} -t Application }
end
task :install => [:downloads] do
end
+8
View File
@@ -113,11 +113,15 @@ task 'clean-debug' do
spawn_rake(:clean)
end
task :cleandebug => ['clean-debug']
task 'clean-release' do
ENV['CONFIG'] = 'Release'
spawn_rake(:clean)
end
task :cleanrelease => ['clean-release']
task 'clean-all' => ['clean-debug', 'clean-release']
task :cleanall => ['clean-all']
@@ -126,11 +130,15 @@ task 'clobber-debug' do
spawn_rake(:clobber)
end
task :clobberdebug => ['clobber-debug']
task 'clobber-release' do
ENV['CONFIG'] = 'Release'
spawn_rake(:clobber)
end
task :clobberrelease => ['clobber-release']
task 'clobber-all' => ['clobber-debug', 'clobber-release']
task :clobberall => ['clobber-all']