Permalink
Browse files

Add a 'dist' target that builds thrust-{major}.{minor}.{subminor}.zip

and examples-{major}.{minor}.zip
  • Loading branch information...
1 parent 0f09f55 commit 9b92f354778a14654bb43c83ffab5d2aa2d6af55 @jaredhoberock jaredhoberock committed Mar 27, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 SConscript
View
@@ -19,7 +19,8 @@ my_env.Install('thrust', '#CHANGELOG')
# make sure to change directory into the variant dir to ensure the paths are correct in the zipfile
# note Zip uses the special site_scons/site_tools/zip.py to WAR an issue with the chdir parameter
-my_env.Zip('thrust-{0}.{1}.{2}.zip'.format(major,minor,subminor), 'thrust', chdir = 1)
+thrust_zipfile = my_env.Zip('thrust-{0}.{1}.{2}.zip'.format(major,minor,subminor), 'thrust', chdir = 1)
+my_env.Alias('dist', thrust_zipfile)
# create the examples zip
@@ -31,7 +32,8 @@ for item in my_env.RecursiveGlob('*', '#examples', 'targets'):
my_env.InstallAs(os.path.join('examples', Dir('#examples').rel_path(item)), item)
# make sure to change directory into the variant dir to ensure the paths are correct in the zipfile
# note Zip uses the special site_scons/site_tools/zip.py to WAR an issue with the chdir parameter
-my_env.Zip('examples-{0}.{1}.zip'.format(major,minor), 'examples', chdir = 1)
+examples_zipfile = my_env.Zip('examples-{0}.{1}.zip'.format(major,minor), 'examples', chdir = 1)
+my_env.Alias('dist', examples_zipfile)
# generate documentation
# note that thrust.dox instructs doxygen to output to the targets directory

0 comments on commit 9b92f35

Please sign in to comment.