flak 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  require 'flak/version'
2
2
 
3
3
  require 'yaml'
4
+ require 'json'
4
5
  require 'rake/clean'
5
6
  require 'find'
6
7
  require 'fileutils'
@@ -1,7 +1,7 @@
1
1
  module Flak
2
2
  # Provide a slightly nicer OS string than the
3
3
  # RUBY_PLATFORM variable
4
- # @return [String] Either 'linux_64', 'linux_32', 'darwin', or 'win_64'
4
+ # @return [String] Either 'linux64', 'linux32', 'darwin64', or 'win64'
5
5
  def self.os
6
6
  case RUBY_PLATFORM
7
7
  when /64-linux/
@@ -8,11 +8,11 @@ Template.new('MayaApp') do
8
8
 
9
9
  maya_string =''
10
10
  case settings[:os]
11
- when /linux_64/
11
+ when /linux64/
12
12
  maya_string = "maya#{settings[:maya_version]}-x64"
13
- when /darwin/
13
+ when /darwin64/
14
14
  maya_string = "maya#{settings[:maya_version]}"
15
- when /win_64/
15
+ when /win64/
16
16
  maya_string = "Maya#{settings[:maya_version]}"
17
17
  end
18
18
 
@@ -20,11 +20,11 @@ Template.new('MayaApp') do
20
20
 
21
21
  bind = binding()
22
22
  Flak::Errors.assert("settings[:autodesk_location]", "String", bind,__FILE__)
23
- Flak::Errors.assert("settings[:path_to_revision]", "String", bind,__FILE__)
23
+ Flak::Errors.assert("settings[:revision_directory]", "String", bind,__FILE__)
24
24
  mods[:maya_location] = File.join( settings[:autodesk_location],maya_string )
25
25
 
26
26
 
27
- mods[:maya_release_path] = File.join( settings[:path_to_revision],"maya" )
27
+ mods[:maya_release_path] = File.join( settings[:revision_directory],"maya" )
28
28
 
29
29
  mods
30
30
 
@@ -25,8 +25,8 @@ module Flak::Template
25
25
 
26
26
  def release_filename
27
27
  bind = binding()
28
- Flak::Errors.assert("@settings[:path_to_revision]", "String", bind,__FILE__)
29
- File.join( @settings[:path_to_revision], 'bin', build_filename.pathmap('%f'))
28
+ Flak::Errors.assert("@settings[:revision_directory]", "String", bind,__FILE__)
29
+ File.join( @settings[:revision_directory], 'bin', build_filename.pathmap('%f'))
30
30
  end
31
31
 
32
32
  # generate path to object file from source: e.g. /hq/dev/jtools/build/2009.3/darwin/debug/animal/sensor.o"
@@ -84,8 +84,8 @@ module Flak::Template
84
84
 
85
85
 
86
86
  def c_clean_cmd
87
- objects = object_files.collect { |el| "\"#{el.to_s}\"" }
88
- "rm -f \"#{build_filename}\" #{objects}"
87
+ object_str = object_files.collect { |el| "\"#{el.to_s}\"" }.join(" ")
88
+ "rm -f \"#{build_filename}\" #{object_str}"
89
89
  end
90
90
  ###################################################
91
91
 
@@ -57,9 +57,9 @@ module Flak::Template
57
57
 
58
58
  def shader_release_path(file)
59
59
  bind = binding()
60
- Flak::Errors.assert("@settings[:path_to_revision]", "String", bind,__FILE__)
60
+ Flak::Errors.assert("@settings[:revision_directory]", "String", bind,__FILE__)
61
61
 
62
- File.join(@settings[:path_to_revision] , 'delight','shader', file.pathmap('%f'))
62
+ File.join(@settings[:revision_directory] , 'delight','shader', file.pathmap('%f'))
63
63
  end
64
64
 
65
65
  def delight_shader_compile_cmd(dest,src)
@@ -17,18 +17,18 @@ module Flak::Template
17
17
  bind = binding()
18
18
 
19
19
  Flak::Errors.assert("settings[:product_revision]", "String", bind,__FILE__)
20
- Flak::Errors.assert("settings[:os]", "String", bind,__FILE__)
20
+ Flak::Errors.assert("settings[:platform_id]", "String", bind,__FILE__)
21
21
  Flak::Errors.assert("settings[:configuration]", "String", bind,__FILE__)
22
22
  Flak::Errors.assert("settings[:tools_directory]", "String", bind,__FILE__)
23
23
  Flak::Errors.assert("settings[:product_name]", "String", bind,__FILE__)
24
24
 
25
- mods[:build_directory] = File.join( "build", settings[:product_revision] , settings[:os], settings[:configuration])
25
+ mods[:build_directory] = File.join( "build", settings[:product_revision] , settings[:platform_id], settings[:configuration])
26
26
 
27
- mods[:release_root] = File.join(settings[:tools_directory], settings[:product_name])
27
+ mods[:platform_directory] = File.join(settings[:tools_directory], settings[:platform_id])
28
+
29
+ mods[:release_root] = File.join(mods[:platform_directory], settings[:product_name])
28
30
 
29
- mods[:path_to_revision] = File.join( mods[:release_root] , settings[:product_revision] )
30
-
31
- # mods[:path_to_revision] += "-#{settings[:os]}" unless settings[:agnostic]
31
+ mods[:revision_directory] = File.join( mods[:release_root] , settings[:product_revision] )
32
32
 
33
33
  mods
34
34
  end
@@ -36,8 +36,8 @@ module Flak::Template
36
36
 
37
37
  def destination_filepath(relative_path, file)
38
38
  bind = binding()
39
- Flak::Errors.assert("@settings[:path_to_revision]", "String", bind,__FILE__)
40
- File.join(@settings[:path_to_revision] , relative_path , file.pathmap('%f').no_erb)
39
+ Flak::Errors.assert("@settings[:revision_directory]", "String", bind,__FILE__)
40
+ File.join(@settings[:revision_directory] , relative_path , file.pathmap('%f').no_erb)
41
41
  end
42
42
 
43
43
 
@@ -11,9 +11,9 @@ module Flak::Template
11
11
 
12
12
  def mac_app_release_path(file)
13
13
  bind = binding()
14
- Flak::Errors.assert("@settings[:path_to_revision]", "String", bind,__FILE__)
14
+ Flak::Errors.assert("@settings[:revision_directory]", "String", bind,__FILE__)
15
15
  Flak::Errors.assert("@settings[:product_revision]", "String", bind,__FILE__)
16
- File.join(@settings[:path_to_revision], 'bin', "#{file.pathmap('%f').pathmap('%X')}-#{@settings[:product_revision]}#{file.pathmap('%x')}")
16
+ File.join(@settings[:revision_directory], 'bin', "#{file.pathmap('%f').pathmap('%X')}-#{@settings[:product_revision]}#{file.pathmap('%x')}")
17
17
  end
18
18
 
19
19
  end
@@ -13,46 +13,15 @@ module Flak::Template
13
13
 
14
14
  def self.settings_modifications settings
15
15
 
16
- maya_string =''
17
- case settings[:os]
18
- when /linux_64/
19
- maya_string = "maya#{settings[:maya_version]}-x64"
20
- when /darwin/
21
- maya_string = "maya#{settings[:maya_version]}"
22
- when /win_64/
23
- maya_string = "Maya#{settings[:maya_version]}"
24
- end
25
-
26
16
  mods = Hash.new
27
17
 
28
18
  bind = binding()
29
- Flak::Errors.assert("settings[:autodesk_location]", "String", bind,__FILE__)
30
- Flak::Errors.assert("settings[:path_to_revision]", "String", bind,__FILE__)
31
- mods[:maya_location] = File.join( settings[:autodesk_location],maya_string )
32
-
33
-
34
- mods[:maya_release_path] = File.join( settings[:path_to_revision],"maya" )
19
+ Flak::Errors.assert("settings[:revision_directory]", "String", bind,__FILE__)
20
+ mods[:maya_release_path] = File.join( settings[:revision_directory],"maya" )
35
21
 
36
22
  mods
37
23
  end
38
24
 
39
- # def maya_icon_destination(file)
40
- # File.join(@settings[:maya_release_path] ,'icons', file.pathmap('%f').no_erb)
41
- # end
42
- #
43
- # def maya_script_destination(file)
44
- # File.join(@settings[:maya_release_path] , 'scripts', file.pathmap('%f').no_erb)
45
- # end
46
- #
47
- #
48
- # def maya_scripted_plugin_destination(file)
49
- # File.join(@settings[:maya_release_path] , 'plug-ins' , file.pathmap('%f').no_erb)
50
- # end
51
- #
52
- # def maya_precompiled_plugin_destination(file)
53
- # File.join(@settings[:maya_release_path] , 'plug-ins' , file.pathmap('%f').no_erb)
54
- # end
55
-
56
25
  def outliner_icon_build_filename(file)
57
26
  icon_build_filename("out_#{file}")
58
27
  end
@@ -67,7 +36,6 @@ module Flak::Template
67
36
  File.join(@settings[:build_directory],'icons', file.pathmap('%f').ext('xpm') )
68
37
  end
69
38
 
70
-
71
39
  end
72
40
 
73
41
 
@@ -89,15 +57,15 @@ module Flak::Template
89
57
 
90
58
  source_files.each do |f|
91
59
 
92
- ['outliner','dg'].each do |t|
60
+ ['outliner','dg'].each do |type|
93
61
 
94
- build_file = target.send "#{t}_icon_build_filename", f
62
+ build_file = target.send "#{type}_icon_build_filename", f
95
63
 
96
64
  dest_file = target.destination_filepath( settings[:maya_icon_destination], build_file)
97
65
 
98
66
  file build_file => f do |t|
99
67
  target.make_directory_for(build_file)
100
- cmd_key = "#{t}_icon_convert_cmd".to_sym
68
+ cmd_key = "#{type}_convert_cmd".to_sym
101
69
  cmd = "#{settings[cmd_key]} #{f} #{build_file}"
102
70
  sh cmd
103
71
  end
@@ -35,24 +35,17 @@ module Flak::Template
35
35
  mods[:lib_paths] = [ lib_path ]
36
36
 
37
37
  case settings[:os]
38
- when /linux_64/
38
+ when /linux64/
39
39
  mods[:linker_options] = [ "-Wl,-rpath,#{lib_path}" ]
40
-
41
-
42
40
  mods[:include_paths] = [ File.join( settings[:maya_location], "include" ) ]
43
- when /darwin/
41
+ when /darwin64/
44
42
  mods[:linker_options] = [ "-Wl,-executable_path,#{lib_path}" ]
45
-
46
43
  mods[:include_paths] = [ File.join(settings[:maya_location],"devkit", "include" ) ]
47
- when /win_64/
44
+ when /win64/
48
45
  mods[:linker_options] = []
49
-
50
46
  mods[:include_paths] = [ File.join(settings[:maya_location], "include" ) ]
51
47
  end
52
48
 
53
-
54
-
55
-
56
49
  mods[:compiler_options] = [
57
50
  "-D\"PLUGIN_VERSION=\\\"#{settings[:product_revision]}\\\"\"",
58
51
  "-D\"PLUGIN_VENDOR=\\\"#{settings[:author_name].gsub(' ','')}\\\"\"",
@@ -70,7 +63,7 @@ module Flak::Template
70
63
  # and as such will have access to the @settings instance variable
71
64
  ###################################################
72
65
  def release_filename
73
- File.join( @settings[:path_to_revision], 'bin', build_filename.pathmap('%f'))
66
+ File.join( @settings[:revision_directory], 'bin', build_filename.pathmap('%f'))
74
67
  end
75
68
  ###################################################
76
69
 
@@ -27,16 +27,16 @@ module Flak::Template
27
27
  mods[:lib_paths] = [ lib_path ]
28
28
 
29
29
  case settings[:os]
30
- when /linux_64/
30
+ when /linux64/
31
31
  mods[:linker_options] = [ "-Wl,-rpath,#{lib_path}" ]
32
32
 
33
33
 
34
34
  mods[:include_paths] = [ File.join( settings[:maya_location], "include" ) ]
35
- when /darwin/
35
+ when /darwin64/
36
36
  mods[:linker_options] = [ "-Wl,-executable_path,#{lib_path}" ]
37
37
 
38
38
  mods[:include_paths] = [ File.join(settings[:maya_location],"devkit", "include" ) ]
39
- when /win_64/
39
+ when /win64/
40
40
  mods[:linker_options] = []
41
41
 
42
42
  mods[:include_paths] = [ File.join(settings[:maya_location], "include" ) ]
@@ -60,7 +60,7 @@ module Flak::Template
60
60
  # and as such will have access to the @settings instance variable
61
61
  ###################################################
62
62
  def release_filename
63
- File.join( @settings[:path_to_revision], 'maya', 'plug-ins', build_filename.pathmap('%f'))
63
+ File.join( @settings[:revision_directory], 'maya', 'plug-ins', build_filename.pathmap('%f'))
64
64
  end
65
65
  ###################################################
66
66
 
@@ -16,25 +16,25 @@ module Flak::Template
16
16
 
17
17
  bind = binding()
18
18
  Flak::Errors.assert("settings[:os]", "String", bind,__FILE__)
19
- Flak::Errors.assert("settings[:path_to_revision]", "String", bind,__FILE__)
19
+ Flak::Errors.assert("settings[:revision_directory]", "String", bind,__FILE__)
20
20
  Flak::Errors.assert("settings[:nuke_version]", "String", bind,__FILE__)
21
21
 
22
22
 
23
23
  mods = Hash.new
24
24
 
25
25
  case settings[:os]
26
- when /linux_64/
26
+ when /linux64/
27
27
  mods[:nuke_location] = ""
28
- when /darwin/
28
+ when /darwin64/
29
29
  mods[:nuke_location] = "/Applications/Nuke#{settings[:nuke_version]}-32/Nuke#{settings[:nuke_version]}.app/Contents"
30
- when /win_64/
30
+ when /win64/
31
31
  mods[:nuke_location] = ""
32
32
  end
33
33
 
34
34
 
35
35
 
36
- msg = 'Problem creating mods[:nuke_release_path] from: settings[:path_to_revision],"nuke"'
37
- mods[:nuke_release_path] = File.join(settings[:path_to_revision],"nuke" )
36
+ msg = 'Problem creating mods[:nuke_release_path] from: settings[:revision_directory],"nuke"'
37
+ mods[:nuke_release_path] = File.join(settings[:revision_directory],"nuke" )
38
38
 
39
39
 
40
40
  mods
@@ -19,9 +19,9 @@ module Flak::Template
19
19
  def release_script_destination(file)
20
20
 
21
21
  bind = binding()
22
- Flak::Errors.assert("@settings[:path_to_revision]", "String", bind,__FILE__)
22
+ Flak::Errors.assert("@settings[:revision_directory]", "String", bind,__FILE__)
23
23
 
24
- File.join( @settings[:path_to_revision], 'bin', file.pathmap('%f').no_erb )
24
+ File.join( @settings[:revision_directory], 'bin', file.pathmap('%f').no_erb )
25
25
  end
26
26
 
27
27
 
@@ -30,9 +30,9 @@ module Flak::Template
30
30
  bind = binding()
31
31
  Flak::Errors.assert("@settings[:product_name]", "String", bind,__FILE__)
32
32
  Flak::Errors.assert("@settings[:product_revision]", "String", bind,__FILE__)
33
- Flak::Errors.assert("@settings[:os]", "String", bind,__FILE__)
33
+ Flak::Errors.assert("@settings[:platform_id]", "String", bind,__FILE__)
34
34
 
35
- "#{@settings[:product_name]}-#{@settings[:product_revision]}-#{@settings[:os]}.tar.gz"
35
+ "#{@settings[:product_name]}-#{@settings[:product_revision]}-#{@settings[:platform_id]}.tar.gz"
36
36
 
37
37
  end
38
38
 
@@ -40,7 +40,6 @@ module Flak::Template
40
40
  bind = binding()
41
41
  Flak::Errors.assert("@settings[:product_name]", "String", bind,__FILE__)
42
42
  Flak::Errors.assert("@settings[:product_revision]", "String", bind,__FILE__)
43
- Flak::Errors.assert("@settings[:os]", "String", bind,__FILE__)
44
43
  n = "#{@settings[:product_name]}/#{@settings[:product_revision]}"
45
44
  end
46
45
 
@@ -63,7 +62,7 @@ module Flak::Template
63
62
  desc "Build everything"
64
63
  task :build
65
64
  CLEAN.include( File.dirname(settings[:build_directory]) )
66
- CLOBBER.include( settings[:path_to_revision])
65
+ CLOBBER.include( settings[:revision_directory])
67
66
 
68
67
  desc "Release everything"
69
68
  task :default => ["release"]
@@ -73,7 +72,7 @@ module Flak::Template
73
72
 
74
73
  desc "Build and tar up product to tar.gz."
75
74
  task :tar => :release do
76
- Dir.chdir( settings[:tools_directory] ) do |d|
75
+ Dir.chdir( settings[:platform_directory] ) do |d|
77
76
  sh "tar cfz #{target.tar_filename} #{target.file_to_tar}"
78
77
  end
79
78
  end
@@ -18,9 +18,9 @@ module Flak::Template
18
18
 
19
19
  def shell_script_destination(file)
20
20
  bind = binding()
21
- Flak::Errors.assert("@settings[:path_to_revision]", "String", bind,__FILE__)
21
+ Flak::Errors.assert("@settings[:revision_directory]", "String", bind,__FILE__)
22
22
 
23
- File.join(@settings[:path_to_revision], 'bin', file.pathmap('%f'))
23
+ File.join(@settings[:revision_directory], 'bin', file.pathmap('%f'))
24
24
  end
25
25
 
26
26
 
@@ -49,16 +49,21 @@ module Flak
49
49
  opts = self.project_options
50
50
  self.name = name
51
51
  empty_directory("build")
52
- directory("doc")
53
52
  empty_directory("plugins")
54
53
  directory("config")
54
+ directory("doc")
55
55
  template( "LICENSE.tt", "LICENSE.txt")
56
56
  template( "README.tt", "README.txt")
57
- template( "product.mel.tt" , "script/maya/erb/#{name}.mel.erb" ) if opts[:maya_module]
58
- template( "INSTALL.tt" , "script/shell/erb/INSTALL_#{name.upcase}.erb")
59
- template( "product.sh.tt" , "script/shell/#{name}.sh" )
60
- template( "raia_package.tt" ,"script/package/package.yml.erb" )
61
- copy_file( "module.tt" , "script/maya/modules/#{name}.erb" )
57
+ template( "product.mel.tt" , "script/maya/erb/#{name}.mel.erb" ) if opts[:maya_module]
58
+ copy_file("module.tt" , "resource/maya/module.erb" ) if opts[:maya_module]
59
+
60
+ copy_file( "INSTALL.sh.tt", "resource/config/INSTALL.sh")
61
+ template( "INSTALL.BAT.tt", "resource/config/INSTALL.BAT")
62
+ template( "env.sh.tt" , "resource/config/env.sh" )
63
+
64
+ create_file "resource/raia/package.yml" do
65
+ Flak::TargetFile.raia_package(name,opts)
66
+ end
62
67
 
63
68
  create_file "project.yml" do
64
69
  Flak::TargetFile.project(name,opts)
@@ -136,6 +141,8 @@ module Flak
136
141
  empty_directory("#{name}/maya/script/plugin")
137
142
  empty_directory("#{name}/maya/icons/node")
138
143
  template("init.mel.tt", "#{name}/maya/script/#{name}.init.mel")
144
+ copy_file( "workspace.mel" , "#{name}/examples/workspace.mel" )
145
+
139
146
  end
140
147
 
141
148
  #desc "create_nuke_script_tree [name]", "Makes tool files needed for nuke development"
@@ -170,7 +177,28 @@ module Flak
170
177
 
171
178
  end
172
179
 
180
+ desc "raia", "Create a raia package file"
181
+ map "r" => :raia
182
+ def raia
183
+ name= File.basename(destination_root)
184
+ opts = {}
185
+ opts[:maya_module] = true
186
+ create_file 'resource/raia/package.yml' do
187
+ Flak::TargetFile.raia_package(name,opts)
188
+ end
189
+ end
173
190
 
191
+ #############
192
+ # Make Config Files individually
193
+ desc "templates", "Create config templates. Run this from an existing project directory"
194
+ map "m" => :templates
195
+ def templates
196
+ self.name= File.basename(destination_root)
197
+ directory("config")
198
+ end
199
+
200
+
201
+ #############
174
202
 
175
203
 
176
204
 
@@ -13,7 +13,7 @@
13
13
 
14
14
  module Flak
15
15
  module TargetFile
16
-
16
+
17
17
 
18
18
  # Generate a tool.yml target file according to options given by the user, usually through a wizard.
19
19
  # @param name [String] name of the tool.
@@ -70,20 +70,66 @@ module Flak
70
70
  h['name'] = "#{name.camelize}Project"
71
71
  h['templates'] = ["release", "doc"]
72
72
 
73
+
74
+
75
+ h['os_darwin64'] = {}
76
+ h['os_linux64'] = {}
77
+ h['os_win64'] = {}
78
+
79
+ h['os_darwin64']['release_script_copy_files'] = ["resource/config/*.sh"]
80
+ h['os_linux64']['release_script_copy_files'] = ["resource/config/*.sh"]
81
+ h['os_win64']['release_script_copy_files'] = ["resource/config/*.BAT"]
82
+
83
+
73
84
  if options[:maya_module]
74
85
  h['maya_script_copy_files'] = ["script/maya/*.mel","script/maya/*.py","script/maya/*.pyc"]
75
86
  h['maya_script_erb_files'] = ["script/maya/erb/*.mel.erb","script/maya/erb/*.py.erb"]
76
87
  h['templates'] << "maya"
77
- h['maya_modules_erb_files'] = ["script/maya/modules/*.erb"]
88
+ h['os_darwin64']['maya_modules_erb_files'] = ["resource/config/*.sh"]
89
+ h['os_linux64']['maya_modules_erb_files'] = ["resource/config/*.sh"]
78
90
  end
79
91
 
80
- h['release_script_copy_files'] = ["script/shell/*.sh"]
81
- h['release_script_erb_files'] = ["script/shell/erb/*.erb"]
82
- h['package_erb_files'] = ["script/package/*.erb"]
83
92
  h['default_copy_files'] = ["LICENSE.*", "README.*"]
93
+ h['package_erb_files'] = ["resource/raia/*"]
94
+
84
95
 
85
96
  YAML::dump(h)
86
97
  end
87
98
 
99
+ def self.raia_package(name,options={})
100
+ h = Hash.new
101
+ h['name'] = name
102
+ h['description'] = "Description goes here"
103
+ h['version'] = "<%= settings[:product_revision] %>"
104
+ h['documentation'] = {"html" => "<%= settings[:revision_directory] %>/doc/index.html"}
105
+ h['platform'] = {"id" => "<%= settings[:platform_id] %>"}
106
+ h['software_location'] = "<%= settings[:revision_directory] %>"
107
+
108
+
109
+ h['requirements'] = []
110
+ if options[:maya_module]
111
+ h['requirements'] << {"name" => "maya", "version" => '==2012'}
112
+ h['requirements'] << {"name" => "jlib", "version" => '>=0.0.7'}
113
+ end
114
+
115
+ h['runtimes'] = []
116
+
117
+ h['env'] ={}
118
+
119
+ h['env']["#{name.upcase}_PROJECT_PATH"] = "$software_location"
120
+
121
+ h['env']["MAYA_MODULE_PATH"] = "$env.MAYA_MODULE_PATH:$software_location/modules" if options[:maya_module]
122
+
123
+ h['env']["NUKE_PATH"] = "$env.NUKE_PATH:$software_location/nuke/scripts" if options[:nuke]
124
+
125
+ if options[:delight]
126
+ h['env']["DL_SHADERS_PATH"] = "$env.DL_SHADERS_PATH:$software_location/delight/shader"
127
+ h['env']["DL_PROCEDURALS_PATH"] = "$env.DL_PROCEDURALS_PATH:$software_location/delight/procedural"
128
+ end
129
+
130
+ JSON.pretty_generate(h)
131
+
132
+ end
133
+
88
134
  end
89
135
  end
@@ -0,0 +1,73 @@
1
+
2
+ @ECHO OFF
3
+
4
+ SET CONFIG_DIR=%~dp0
5
+
6
+ CALL :RESOLVE "%CONFIG_DIR%\.." MODULE_LOCATION
7
+
8
+ CALL :EXTRACT "%MODULE_LOCATION%" VERSION_STRING
9
+
10
+ CALL :EXTRACT "%MODULE_LOCATION%\.." PROJECT_NAME
11
+
12
+ echo ---------------------------------------------
13
+ echo Setting up %PROJECT_NAME%
14
+ echo ---------------------------------------------
15
+
16
+ <% if project_options[:nuke] -%>
17
+ echo --------------------NUKE_PATH---------
18
+ echo If the same module
19
+ echo appears more than once, you should remove duplicates
20
+ echo or older versions from the environment using the
21
+ echo environment variable control panel.
22
+ echo ---------------------------------------------
23
+ IF "%NUKE_PATH%" == "" GOTO :NO_NUKE_PATH
24
+ :YES_NUKE_PATH
25
+ SET buff="%NUKE_PATH%;%MODULE_LOCATION%\nuke\scripts"
26
+ GOTO :END_NUKE_PATH
27
+ :NO_NUKE_PATH
28
+ SET buff="%MODULE_LOCATION%\nuke\scripts"
29
+ :END_NUKE_PATH
30
+ setx NUKE_PATH %buff%
31
+ setlocal EnableDelayedExpansion
32
+ set LF=^
33
+
34
+
35
+ echo %buff:;=!LF!%
36
+ endlocal
37
+ <% end -%>
38
+
39
+ <% if project_options[:maya_module] -%>
40
+ echo --------------------MAKING MODULE FILE---------
41
+ set maya_module_dir=%USERPROFILE%\Documents\maya\modules
42
+ mkdir %maya_module_dir%
43
+ echo + %PROJECT_NAME% %VERSION_STRING% %MODULE_LOCATION%\maya > "%maya_module_dir%\%PROJECT_NAME%"
44
+ echo Created %maya_module_dir%\%PROJECT_NAME%
45
+ echo ---------------------------------------------
46
+ <% end -%>
47
+
48
+
49
+
50
+ echo --------------------PATH---------------------
51
+ echo I can't change the system path variable!!
52
+ echo You will have to do it yourself, or ask ask
53
+ echo a systems administrator. Go to the
54
+ echo start menu, right click on "Computer",
55
+ echo and go to "properties".
56
+ echo Click "Advanced System Settings"
57
+ echo Click "Environment Variables"
58
+ echo Create or append to the "PATH" user variable with this directory:
59
+ echo %MODULE_LOCATION%\bin
60
+ echo Don't forget to remove old versions or
61
+ echo duplicates should you find some.
62
+
63
+ GOTO :EOF
64
+
65
+ :RESOLVE
66
+ SET %2=%~f1
67
+ GOTO :EOF
68
+
69
+
70
+ :EXTRACT
71
+ SET %2=%~nx1
72
+ GOTO :EOF
73
+
@@ -0,0 +1,74 @@
1
+ #!/bin/tcsh
2
+
3
+ #TODO - rewrite in ruby
4
+
5
+ # INSTALL script for bash
6
+ # Write lines at the bottom of bashrc to source the env.sh file
7
+
8
+ set rootdir = `dirname $0`
9
+ set rootdir = `cd $rootdir && pwd` # ensure absolute path
10
+ set basedir = `basename $0`
11
+
12
+ # set full_path_to_this_script = `echo $0 | sed "s@^./@$PWD/@"`
13
+ set full_path_to_this_script = ${rootdir}/${basedir}
14
+ echo "full path to script : ${full_path_to_this_script}"
15
+
16
+ set tools = $full_path_to_this_script:h:h:h:h
17
+ set product_version = $full_path_to_this_script:h:h:t
18
+ set product = $full_path_to_this_script:h:h:h:t
19
+ set product_install_dir = ${tools}/${product}
20
+ set product_up = `echo $product | tr '[a-z]' '[A-Z]'`
21
+
22
+ echo "**************************************************************"
23
+ echo ""
24
+
25
+ echo "working from : ${tools}"
26
+ pushd ${tools}
27
+
28
+ echo ${product}" install directory is: ${product_install_dir}"
29
+
30
+ set the_product_dir = ${product_install_dir}/${product_version}
31
+
32
+ # add source .flak to .bashrc
33
+ set bashrc = ${HOME}/.bashrc
34
+ if ( ! -e ${bashrc} ) then
35
+ touch ${bashrc}
36
+ endif
37
+
38
+ set flaksrc = '# added by flak'
39
+ set res = `grep "${flaksrc}" ${HOME}/.bashrc`
40
+
41
+ if ( "${res}" == "" ) then
42
+ echo "" >> ${HOME}/.bashrc
43
+ echo '[[ -s "$HOME/.flak" ]] && . "$HOME/.flak" # added by flak' >> ${HOME}/.bashrc
44
+ endif
45
+
46
+ # add source product env to .flak
47
+ set flakenv = ${HOME}/.flak
48
+
49
+ if (-f ${flakenv}) then
50
+ cp ${flakenv} ${flakenv}.${product}.bck
51
+ cat ${flakenv}.${product}.bck | grep -v "#.*added by ${product}" > ${flakenv}
52
+ else
53
+ touch ${flakenv}
54
+ endif
55
+
56
+
57
+ echo "appending ${product} source commands to ${flakenv}"
58
+ echo "" >> ${flakenv}
59
+ echo "# The following lines have been added by ${product}" >> ${flakenv}
60
+ echo 'export '${product_up}'_PROJECT_PATH="'${the_product_dir}'" # added by '${product} >> ${flakenv}
61
+ echo '[[ -e "${'${product_up}'_PROJECT_PATH}/config/env.sh" ]] && . "${'${product_up}'_PROJECT_PATH}/config/env.sh" # added by '${product} >> ${flakenv}
62
+
63
+ echo ""
64
+ echo "*********NOW RUN THESE COMMANDS OR (preferebly) OPEN A NEW SHELL***********"
65
+ echo ""
66
+ echo "export ${product_up}_PROJECT_PATH=${the_product_dir}"
67
+ echo '. ${'${product_up}'_PROJECT_PATH}/bin/env.sh'
68
+ echo ""
69
+ echo "**************************************************************"
70
+
71
+
72
+ popd
73
+
74
+
@@ -1,6 +1,6 @@
1
1
  os_linux64:
2
- compiler: '/opt/gcc412/bin/gcc412'
3
- linker: '/opt/gcc412/bin/g++412'
2
+ compiler: 'gcc'
3
+ linker: 'g++'
4
4
  archiver: '/usr/bin/ar rv'
5
5
  target_extension: ''
6
6
  dso_options:
@@ -9,17 +9,19 @@ configuration: "debug"
9
9
  product_name: "<%= name %>"
10
10
 
11
11
  # The revision number for your product. You can set it to any string.
12
- product_revision: "0.0.1"
12
+ configuration_debug:
13
+ product_revision: "dev.999"
14
+ configuration_release:
15
+ product_revision: "0.0.1"
13
16
 
14
17
  # Your full name is used for documentation and also to set plugin vendor
15
18
  # information. This is done by adding these fields as compiler options
16
19
  # which are then picked up in the plugin code. In the case of a maya plugin
17
20
  # this happens in the initialize_plugin function.
18
- <% names = `finger`.split("\n")[1].split(' ')[1..2] -%>
19
- author_name: "<%= names.collect {|p| p.capitalize}.join(' ') %>"
21
+ author_name: "<%= ENV['USER'].capitalize %>"
20
22
 
21
23
  # Your email address is used for documentation.
22
- author_email: "<%= names.join('.') %>@relianceada.com"
24
+ author_email: "<%= ENV['USER'] %>@relianceada.com"
23
25
 
24
26
  # Set the root of the release location here. Notice how specific locations
25
27
  # are set for different platforms and named configurations.
@@ -33,17 +35,20 @@ author_email: "<%= names.join('.') %>@relianceada.com"
33
35
  # rake -T | grep inspect
34
36
  # and run one of the rake commands for a tool or the project.
35
37
  os_darwin64:
38
+ platform_id: "darwin64"
36
39
  configuration_debug:
37
- tools_directory: "${HOME}/tools/darwin64"
40
+ tools_directory: "${HOME}/tools"
38
41
  configuration_release:
39
- tools_directory: "/software/package/darwin64"
42
+ tools_directory: "/software/package"
40
43
  os_linux64:
44
+ platform_id: "linux64_centos5"
41
45
  configuration_debug:
42
- tools_directory: "${HOME}/tools/linux64"
46
+ tools_directory: "${HOME}/tools"
43
47
  configuration_release:
44
- tools_directory: "/software/package/linux64"
48
+ tools_directory: "/software/package"
45
49
  os_win64:
50
+ platform_id: "win64"
46
51
  configuration_debug:
47
- tools_directory: "/cygdrive/c/cygwin/${HOME}/tools/win64"
52
+ tools_directory: "/cygdrive/c/cygwin/${HOME}/tools"
48
53
  configuration_release:
49
- tools_directory: "/software/package/win64"
54
+ tools_directory: "/software/package"
@@ -15,10 +15,11 @@ maya_scripted_plugin_destination: 'maya/plug-ins'
15
15
  maya_precompiled_plugin_destination: 'maya/plug-ins'
16
16
 
17
17
  os_linux64:
18
- autodesk_location: '/usr/autodesk'
18
+ maya_location: '/software/package/linux64/maya/2012'
19
19
 
20
20
  os_darwin64:
21
- autodesk_location: '/Applications/Autodesk'
21
+ maya_location: '/Applications/Autodesk/maya2012'
22
22
 
23
23
  os_win64:
24
- autodesk_location: 'C:/Program Files/Autodesk'
24
+ maya_location: 'C:/Program Files/Autodesk/Maya2012'
25
+
@@ -1,4 +1,13 @@
1
- release_script_destination: 'bin'
1
+ release_script_destination: 'config'
2
2
  package_destination: ''
3
- maya_modules_destination: 'modules'
4
3
 
4
+
5
+ # maya_modules_destination is a path for the whole
6
+ # module and as such the maya template will not be mixed
7
+ # in to the project.yml file (perhaps it should be).
8
+ # Therefore it needs to be specified here.
9
+ # In any case, this is currently a *nix thing - not win
10
+ os_darwin64:
11
+ maya_modules_destination: 'maya/modules'
12
+ os_linux64:
13
+ maya_modules_destination: 'maya/modules'
@@ -0,0 +1,37 @@
1
+ <% path = "#{name.upcase}_PROJECT_PATH" -%>
2
+ # append <%= path %> bin paths to PATH
3
+ export PATH=$PATH:${<%= path %>}/bin
4
+
5
+ <% if project_options[:delight] -%>
6
+ # append <%= path %> delight paths to bin
7
+ export PATH=$PATH:${<%= path %>}/delight/procedural
8
+
9
+ # append <%= path %> delight resource paths
10
+
11
+ if [[ -n $DL_SHADERS_PATH ]] ;
12
+ then export DL_SHADERS_PATH=${<%= path %>}/delight/shader:${DL_SHADERS_PATH} ;
13
+ else export DL_SHADERS_PATH=${<%= path %>}/delight/shader ;
14
+ fi
15
+
16
+ if [[ -n $DL_PROCEDURALS_PATH ]] ;
17
+ then export DL_PROCEDURALS_PATH=${<%= path %>}/delight/procedural:${DL_PROCEDURALS_PATH} ;
18
+ else export DL_PROCEDURALS_PATH=${<%= path %>}/delight/procedural ;
19
+ fi
20
+ <% end -%>
21
+
22
+ <% if project_options[:nuke] -%>
23
+ # append <%= path %> nuke resource paths
24
+ if [[ -n $NUKE_PATH ]] ;
25
+ then export NUKE_PATH=${<%= path %>}/nuke/scripts:${NUKE_PATH} ;
26
+ else export NUKE_PATH=${<%= path %>}/nuke/scripts ;
27
+ fi
28
+ <% end -%>
29
+
30
+
31
+ <% if project_options[:maya_module] -%>
32
+ # append <%= path %> nuke resource paths
33
+ if [[ -n $MAYA_MODULE_PATH ]] ;
34
+ then export MAYA_MODULE_PATH=${<%= path %>}/maya/modules:${MAYA_MODULE_PATH} ;
35
+ else export MAYA_MODULE_PATH=${<%= path %>}/maya/modules ;
36
+ fi
37
+ <% end -%>
@@ -1,8 +1,9 @@
1
1
  build
2
2
  doc/.sass*
3
3
  doc/output
4
+ doc/tmp
4
5
  tmp/
5
6
  .DS_Store
6
7
  *.idb
7
8
  *.bak
8
- *~
9
+ *~
@@ -1,4 +1,4 @@
1
- + <%= settings[:product_name]%> <%= settings[:product_revision]%> <%= settings[:path_to_revision]%>/maya
1
+ + <%= settings[:product_name]%> <%= settings[:product_revision]%> <%= settings[:revision_directory]%>/maya
2
2
 
3
3
 
4
4
 
@@ -0,0 +1,47 @@
1
+ //Maya 2012 x64 Project Definition
2
+
3
+ workspace -fr "offlineEdit" "scenes/edits";
4
+ workspace -fr "translatorData" "data";
5
+ workspace -fr "renderData" "renderData";
6
+ workspace -fr "scene" "scenes";
7
+ workspace -fr "DXF_DC" "data";
8
+ workspace -fr "3dPaintTextures" "sourceimages/3dPaintTextures";
9
+ workspace -fr "eps" "data";
10
+ workspace -fr "mentalRay" "renderData/mentalray";
11
+ workspace -fr "OBJexport" "data";
12
+ workspace -fr "mel" "scripts";
13
+ workspace -fr "furShadowMap" "renderData/fur/furShadowMap";
14
+ workspace -fr "particles" "particles";
15
+ workspace -fr "audio" "sound";
16
+ workspace -fr "scripts" "scripts";
17
+ workspace -fr "STEP_DC" "data";
18
+ workspace -fr "sound" "sound";
19
+ workspace -fr "studioImport" "data";
20
+ workspace -fr "furFiles" "renderData/fur/furFiles";
21
+ workspace -fr "depth" "renderData/depth";
22
+ workspace -fr "autoSave" "autosave";
23
+ workspace -fr "furAttrMap" "renderData/fur/furAttrMap";
24
+ workspace -fr "diskCache" "cache";
25
+ workspace -fr "FBX export" "data";
26
+ workspace -fr "sourceImages" "sourceimages";
27
+ workspace -fr "FBX" "data";
28
+ workspace -fr "DAE_FBX export" "data";
29
+ workspace -fr "movie" "movies";
30
+ workspace -fr "DAE_FBX" "data";
31
+ workspace -fr "iprImages" "renderData/iprImages";
32
+ workspace -fr "mayaAscii" "scenes";
33
+ workspace -fr "furImages" "renderData/fur/furImages";
34
+ workspace -fr "IGES_DC" "data";
35
+ workspace -fr "furEqualMap" "renderData/fur/furEqualMap";
36
+ workspace -fr "illustrator" "data";
37
+ workspace -fr "mayaBinary" "scenes";
38
+ workspace -fr "move" "data";
39
+ workspace -fr "images" "images";
40
+ workspace -fr "fluidCache" "cache/fluid";
41
+ workspace -fr "SPF_DC" "data";
42
+ workspace -fr "clips" "clips";
43
+ workspace -fr "OBJ" "data";
44
+ workspace -fr "templates" "assets";
45
+ workspace -fr "STL_DC" "data";
46
+ workspace -fr "shaders" "renderData/shaders";
47
+ workspace -fr "DWG_DC" "data";
@@ -1,3 +1,3 @@
1
1
  module Flak
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-28 00:00:00.000000000 Z
12
+ date: 2012-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70253149612240 !ruby/object:Gem::Requirement
16
+ requirement: &70320783082380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70253149612240
24
+ version_requirements: *70320783082380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: awesome_print
27
- requirement: &70253149608760 !ruby/object:Gem::Requirement
27
+ requirement: &70320783078480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70253149608760
35
+ version_requirements: *70320783078480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: nanoc
38
- requirement: &70253149608240 !ruby/object:Gem::Requirement
38
+ requirement: &70320783078040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70253149608240
46
+ version_requirements: *70320783078040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sass
49
- requirement: &70253149607740 !ruby/object:Gem::Requirement
49
+ requirement: &70320783077580 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70253149607740
57
+ version_requirements: *70320783077580
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: RedCloth
60
- requirement: &70253149607220 !ruby/object:Gem::Requirement
60
+ requirement: &70320783077040 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70253149607220
68
+ version_requirements: *70320783077040
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
- requirement: &70253149606660 !ruby/object:Gem::Requirement
71
+ requirement: &70320783076520 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - =
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.7.2
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70253149606660
79
+ version_requirements: *70320783076520
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: redcarpet
82
- requirement: &70253149606140 !ruby/object:Gem::Requirement
82
+ requirement: &70320783076100 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70253149606140
90
+ version_requirements: *70320783076100
91
91
  description: VFX tool build and documentation framework based on rake with thor generators
92
92
  email:
93
93
  - julian.mann@gmail.com
@@ -136,7 +136,8 @@ files:
136
136
  - lib/flak/thor/generate.rb
137
137
  - lib/flak/thor/junk/junk.rb
138
138
  - lib/flak/thor/target_file.rb
139
- - lib/flak/thor/templates/INSTALL.tt
139
+ - lib/flak/thor/templates/INSTALL.BAT.tt
140
+ - lib/flak/thor/templates/INSTALL.sh.tt
140
141
  - lib/flak/thor/templates/LICENSE.tt
141
142
  - lib/flak/thor/templates/README.tt
142
143
  - lib/flak/thor/templates/Rakefile.tt
@@ -189,6 +190,7 @@ files:
189
190
  - lib/flak/thor/templates/doc/lib/helpers.rb
190
191
  - lib/flak/thor/templates/doc/scenes/.empty_directory
191
192
  - lib/flak/thor/templates/doc/scenes/module_logo.psd
193
+ - lib/flak/thor/templates/env.sh.tt
192
194
  - lib/flak/thor/templates/gitignore.tt
193
195
  - lib/flak/thor/templates/init.mel.tt
194
196
  - lib/flak/thor/templates/maya_plugin_cpp.tt
@@ -198,8 +200,7 @@ files:
198
200
  - lib/flak/thor/templates/plugin.rb.tt
199
201
  - lib/flak/thor/templates/plugin.yml.tt
200
202
  - lib/flak/thor/templates/product.mel.tt
201
- - lib/flak/thor/templates/product.sh.tt
202
- - lib/flak/thor/templates/raia_package.tt
203
+ - lib/flak/thor/templates/workspace.mel
203
204
  - lib/flak/thor/wizard.rb
204
205
  - lib/flak/version.rb
205
206
  - target.graffle
@@ -1,118 +0,0 @@
1
- #!/bin/tcsh
2
-
3
- #TODO - rewrite in ruby
4
-
5
-
6
- # INSTALL script for mac and linux - the purpose of this script is to:
7
- # Write lines at the bottom of bashrc to source the <%%= @settings[:product_name] %>.sh file
8
- # Write the Maya modules file if this is a module, and put it in the maya app dir modules directory
9
-
10
- set maya_ver = "<%%= @settings[:maya_version] %>"
11
-
12
- set product_up = "<%%= @settings[:product_name].upcase %>"
13
- set product_version = "<%%= self.settings[:product_revision] %>"
14
- set product = "<%%= @settings[:product_name] %>"
15
-
16
- set rootdir = `dirname $0`
17
- set rootdir = `cd $rootdir && pwd` # ensure absolute path
18
- set base = `basename $0`
19
-
20
- # set full_path_to_this_script = `echo $0 | sed "s@^./@$PWD/@"`
21
- set full_path_to_this_script = ${rootdir}/${base}
22
- echo "full path to script : ${full_path_to_this_script}"
23
-
24
- set tools = $full_path_to_this_script:h:h:h:h
25
- set version_dir = $full_path_to_this_script:h:h:t
26
-
27
- set product_install_dir = ${tools}/<%%= @settings[:product_name] %>
28
- echo "**************************************************************"
29
- echo ""
30
-
31
- echo "working from : ${tools}"
32
- pushd ${tools}
33
-
34
- echo "<%%= @settings[:product_name] %> install directory is: ${product_install_dir}"
35
-
36
- set install_platform = ""
37
- set maya_ver_dir =""
38
- set modules_dir = ""
39
- set maya_app_dir =""
40
-
41
- if (! $?MAYA_APP_DIR) then
42
- setenv MAYA_APP_DIR "${HOME}/maya"
43
- endif
44
-
45
- set maya_app_dir = ${MAYA_APP_DIR}
46
-
47
- set os=`uname -s`
48
- echo "os is: ${os}"
49
-
50
-
51
- if ($os == "Linux") then
52
- set arch=`uname -m`
53
- if (maya_app_dir == "") then
54
- set maya_app_dir = "${HOME}/maya"
55
- endif
56
- if ($arch == "x86_64") then
57
- set install_platform = "linux_64"
58
- set maya_ver_dir = "${maya_ver}-x64"
59
- else
60
- set install_platform = "linux_32"
61
- set maya_ver_dir = "${maya_ver}"
62
- endif
63
- endif
64
-
65
- if ($os == "Darwin") then
66
- if (maya_app_dir == "") then
67
- set maya_app_dir = "${HOME}/Library/Preferences/Autodesk/maya"
68
- endif
69
- set install_platform = "darwin"
70
- set maya_ver_dir = "${maya_ver}-x64"
71
- endif
72
-
73
- if ($os == "CYGWIN_NT-6.1-WOW64") then
74
- if (maya_app_dir == "") then
75
- set maya_app_dir = "${HOME}/maya"
76
- endif
77
- set install_platform = "cygwin"
78
- set maya_ver_dir = "${maya_ver}-x64"
79
- endif
80
-
81
- set modules_dir = "${maya_app_dir}/${maya_ver_dir}/modules"
82
- mkdir -p $modules_dir
83
-
84
- set the_product_dir = ${product_install_dir}/${version_dir}
85
- set the_maya_module = ${the_product_dir}"/maya"
86
-
87
- <% if project_options[:maya_module] -%>
88
- echo "+ <%%= @settings[:product_name] %> <%%= self.settings[:product_revision] %> ${the_maya_module}" > ${modules_dir}/<%%= @settings[:product_name] %>
89
- echo "writing + <%%= @settings[:product_name] %> <%%= self.settings[:product_revision] %> ${the_maya_module} to ${modules_dir}/<%%= @settings[:product_name] %>"
90
- <% else -%>
91
- # Uncomment the next 2 lines if you want this script to set up the <%%= @settings[:product_name] %> maya module file
92
- # echo "+ <%%= @settings[:product_name] %> <%%= self.settings[:product_revision] %> ${the_maya_module}" > ${modules_dir}/<%%= @settings[:product_name] %>
93
- # echo "writing + <%%= @settings[:product_name] %> <%%= self.settings[:product_revision] %> ${the_maya_module} to ${modules_dir}/<%%= @settings[:product_name] %>"
94
- <% end -%>
95
-
96
- if (-f ${HOME}/.bashrc) then
97
- cp ${HOME}/.bashrc ${HOME}/.bashrc.<%%= @settings[:product_name] %>.bck
98
- cat ${HOME}/.bashrc.<%%= @settings[:product_name] %>.bck | grep -v "#.*added by <%%= @settings[:product_name] %>" > ${HOME}/.bashrc
99
-
100
- echo "appending <%%= @settings[:product_name] %> source commands to ${HOME}/.bashrc"
101
-
102
- echo "# The following lines have been added by <%%= @settings[:product_name] %>" >> ${HOME}/.bashrc
103
- echo 'export <%%= @settings[:product_name].upcase %>_PROJECT_PATH="'${the_product_dir}'" # added by <%%= @settings[:product_name] %>' >> ${HOME}/.bashrc
104
- echo '[[ -e "${<%%= @settings[:product_name].upcase %>_PROJECT_PATH}/bin/<%%= @settings[:product_name] %>.sh" ]] && . "${<%%= @settings[:product_name].upcase %>_PROJECT_PATH}/bin/<%%= @settings[:product_name] %>.sh" # added by <%%= @settings[:product_name] %>' >> ${HOME}/.bashrc
105
-
106
- echo ""
107
- echo "*********NOW RUN THESE COMMANDS OR OPEN A NEW SHELL***********"
108
- echo ""
109
- echo "export <%%= @settings[:product_name].upcase %>_PROJECT_PATH=${the_product_dir}"
110
- echo '. ${<%%= @settings[:product_name].upcase %>_PROJECT_PATH}/bin/<%%= @settings[:product_name] %>.sh'
111
- echo ""
112
- echo "**************************************************************"
113
-
114
- endif
115
-
116
- popd
117
-
118
-
@@ -1,31 +0,0 @@
1
- <% path = "#{name.upcase}_PROJECT_PATH" -%>
2
- # append <%= path %> bin paths to PATH
3
- export PATH=$PATH:${<%= path %>}/bin
4
-
5
- <% if project_options[:delight] -%>
6
- # append <%= path %> delight paths to bin
7
- export PATH=$PATH:${<%= path %>}/delight/procedural
8
-
9
- # append <%= path %> delight resource paths
10
-
11
- if [[ -n $DL_SHADERS_PATH ]] ;
12
- then export DL_SHADERS_PATH=.:${<%= path %>}/delight/shader:${DL_SHADERS_PATH} ;
13
- else export DL_SHADERS_PATH=.:${<%= path %>}/delight/shader ;
14
- fi
15
-
16
- if [[ -n $DL_PROCEDURALS_PATH ]] ;
17
- then export DL_PROCEDURALS_PATH=.:${<%= path %>}/delight/procedural:${DL_PROCEDURALS_PATH} ;
18
- else export DL_PROCEDURALS_PATH=.:${<%= path %>}/delight/procedural ;
19
- fi
20
-
21
-
22
- <% end -%>
23
-
24
- <% if project_options[:nuke] -%>
25
- # append <%= path %> nuke resource paths
26
-
27
- if [[ -n $NUKE_PATH ]] ;
28
- then export NUKE_PATH=.:${<%= path %>}/nuke/scripts:${NUKE_PATH} ;
29
- else export NUKE_PATH=.:${<%= path %>}/nuke/scripts ;
30
- fi
31
- <% end -%>
@@ -1,24 +0,0 @@
1
- {
2
- 'name': '<%%=settings[:product_name]%>',
3
- 'description': 'Description goes here.',
4
- 'version': '<%%=settings[:product_revision]%>',
5
- 'platform': {'id': '<%%= settings[:os] %>'},
6
- 'software_location': '<%%=settings[:path_to_revision]%>',
7
- 'documentation': { 'html': '<%%=settings[:doc_destination]%>/index.html' },
8
- 'requirements': [
9
- <% if project_options[:maya_module] -%>
10
- {'name': 'maya', 'version': '>=2011'} ,
11
- {'name': 'jlib', 'version': '>=0.0.3'}
12
- <% end -%>
13
- ],
14
- 'runtimes': [],
15
- 'env': {
16
- '<%%=settings[:product_name].upcase %>_PROJECT_PATH': '<%%=settings[:path_to_revision]%>'
17
- <% if project_options[:maya_module] -%>
18
- ,'MAYA_MODULE_PATH': '$env.MAYA_MODULE_PATH:<%%=settings[:path_to_revision]%>/modules'
19
- <% end -%>
20
- <% if project_options[:nuke] -%>
21
- ,'NUKE_PATH': '$env.NUKE_PATH:<%=settings[:path_to_revision]%>/nuke/scripts'
22
- <% end -%>
23
- }
24
- }