flak 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/flak/rake/os.rb +4 -4
- data/lib/flak/rake/templates/doc.rb +3 -15
- data/lib/flak/rake/templates/environment.rb +11 -7
- data/lib/flak/rake/templates/maya_app.rb +3 -2
- data/lib/flak/rake/templates/release.rb +2 -7
- data/lib/flak/rake/templates/shell.rb +8 -8
- data/lib/flak/thor/generate.rb +4 -1
- data/lib/flak/thor/target_file.rb +6 -0
- data/lib/flak/thor/templates/INSTALL.tt +4 -4
- data/lib/flak/thor/templates/LICENSE.tt +10 -0
- data/lib/flak/thor/templates/README.tt +5 -0
- data/lib/flak/thor/templates/config/cpp.yml.tt +3 -3
- data/lib/flak/thor/templates/config/delight.yml.tt +3 -3
- data/lib/flak/thor/templates/config/environment.yml.tt +14 -16
- data/lib/flak/thor/templates/config/gl.yml.tt +3 -3
- data/lib/flak/thor/templates/config/maya.yml.tt +3 -3
- data/lib/flak/thor/templates/config/maya_app.yml.tt +3 -3
- data/lib/flak/thor/templates/config/maya_plugin.yml.tt +3 -3
- data/lib/flak/thor/templates/config/release.yml.tt +2 -1
- data/lib/flak/thor/templates/gitignore.tt +1 -1
- data/lib/flak/thor/templates/module.tt +4 -0
- data/lib/flak/thor/templates/plugin.yml.tt +3 -3
- data/lib/flak/thor/templates/product.mel.tt +2 -2
- data/lib/flak/thor/templates/product.sh.tt +13 -13
- data/lib/flak/thor/templates/raia_package.tt +24 -0
- data/lib/flak/thor/wizard.rb +1 -1
- data/lib/flak/version.rb +1 -1
- metadata +20 -16
data/lib/flak/rake/os.rb
CHANGED
@@ -18,7 +18,7 @@ module Flak::Template
|
|
18
18
|
Flak::Errors.assert("settings[:product_revision]", "String", bind,__FILE__)
|
19
19
|
Flak::Errors.assert("settings[:release_root]", "String", bind,__FILE__)
|
20
20
|
|
21
|
-
mods[:doc_directory_name] = "#{settings[:product_revision]}
|
21
|
+
mods[:doc_directory_name] = "#{settings[:product_revision]}/doc"
|
22
22
|
|
23
23
|
mods[:doc_destination] = File.join( settings[:release_root] , mods[:doc_directory_name] )
|
24
24
|
|
@@ -74,23 +74,11 @@ module Flak::Template
|
|
74
74
|
site = Nanoc::Site.new(YAML.load_file('config.yaml'))
|
75
75
|
site.config[:output_dir] = settings[:doc_destination]
|
76
76
|
target.doc_plug_metadata(site)
|
77
|
-
|
78
|
-
|
79
|
-
puts "Compiling site..."
|
77
|
+
puts "Compiling documentation site in #{settings[:doc_destination]}"
|
80
78
|
site.compile
|
81
|
-
puts "Done
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
namespace :doc do
|
86
|
-
desc "Build and tar up documentation to tar.gz."
|
87
|
-
task :tar => :doc do
|
88
|
-
Dir.chdir( settings[:tools_directory] ) do |d|
|
89
|
-
sh "tar cfz #{settings[:product_name]}-#{settings[:product_revision]}-doc.tar.gz #{settings[:product_name]}/#{settings[:product_revision]}-doc"
|
90
|
-
end
|
79
|
+
puts "Done."
|
91
80
|
end
|
92
81
|
end
|
93
|
-
|
94
82
|
end
|
95
83
|
|
96
84
|
|
@@ -28,7 +28,7 @@ module Flak::Template
|
|
28
28
|
|
29
29
|
mods[:path_to_revision] = File.join( mods[:release_root] , settings[:product_revision] )
|
30
30
|
|
31
|
-
mods[:path_to_revision] += "-#{settings[:os]}" unless settings[:agnostic]
|
31
|
+
# mods[:path_to_revision] += "-#{settings[:os]}" unless settings[:agnostic]
|
32
32
|
|
33
33
|
mods
|
34
34
|
end
|
@@ -76,7 +76,11 @@ module Flak::Template
|
|
76
76
|
if settings.has_key? destination_path_key
|
77
77
|
destination_file = target.destination_filepath( settings[destination_path_key], f)
|
78
78
|
else
|
79
|
-
|
79
|
+
if target.respond_to?(destination_path_key)
|
80
|
+
destination_file = target.send destination_path_key, f
|
81
|
+
else
|
82
|
+
destination_file = target.destination_filepath( '', f)
|
83
|
+
end
|
80
84
|
end
|
81
85
|
|
82
86
|
file destination_file => f do
|
@@ -128,7 +132,11 @@ module Flak::Template
|
|
128
132
|
if settings.has_key? destination_path_key
|
129
133
|
destination_file = target.destination_filepath(settings[destination_path_key], f)
|
130
134
|
else
|
131
|
-
|
135
|
+
if target.respond_to?(destination_path_key)
|
136
|
+
destination_file = target.send destination_path_key, f
|
137
|
+
else
|
138
|
+
destination_file = target.destination_filepath( '', f)
|
139
|
+
end
|
132
140
|
end
|
133
141
|
|
134
142
|
file destination_file => f do
|
@@ -165,10 +173,6 @@ module Flak::Template
|
|
165
173
|
|
166
174
|
end
|
167
175
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
176
|
def self.task_factory target
|
173
177
|
self.generate_erb_tasks target
|
174
178
|
self.generate_copy_tasks target
|
@@ -29,8 +29,9 @@ module Flak::Template
|
|
29
29
|
|
30
30
|
|
31
31
|
|
32
|
-
|
33
|
-
|
32
|
+
# lib_path = File.join( settings[:maya_location], settings[:maya_relative_lib_path], {:key => 'lib_path'})
|
33
|
+
lib_path = File.join(settings[:maya_location], settings[:maya_relative_lib_path])
|
34
|
+
|
34
35
|
mods[:lib_paths] = [ lib_path ]
|
35
36
|
|
36
37
|
case settings[:os]
|
@@ -31,11 +31,9 @@ module Flak::Template
|
|
31
31
|
Flak::Errors.assert("@settings[:product_name]", "String", bind,__FILE__)
|
32
32
|
Flak::Errors.assert("@settings[:product_revision]", "String", bind,__FILE__)
|
33
33
|
Flak::Errors.assert("@settings[:os]", "String", bind,__FILE__)
|
34
|
+
|
35
|
+
"#{@settings[:product_name]}-#{@settings[:product_revision]}-#{@settings[:os]}.tar.gz"
|
34
36
|
|
35
|
-
n = "#{@settings[:product_name]}-#{@settings[:product_revision]}"
|
36
|
-
n += "-#{@settings[:os]}" unless @settings[:agnostic]
|
37
|
-
n += ".tar.gz"
|
38
|
-
n
|
39
37
|
end
|
40
38
|
|
41
39
|
def file_to_tar
|
@@ -43,10 +41,7 @@ module Flak::Template
|
|
43
41
|
Flak::Errors.assert("@settings[:product_name]", "String", bind,__FILE__)
|
44
42
|
Flak::Errors.assert("@settings[:product_revision]", "String", bind,__FILE__)
|
45
43
|
Flak::Errors.assert("@settings[:os]", "String", bind,__FILE__)
|
46
|
-
|
47
44
|
n = "#{@settings[:product_name]}/#{@settings[:product_revision]}"
|
48
|
-
n += "-#{@settings[:os]}" unless @settings[:agnostic]
|
49
|
-
n
|
50
45
|
end
|
51
46
|
|
52
47
|
end
|
@@ -31,14 +31,14 @@ module Flak::Template
|
|
31
31
|
|
32
32
|
module Tasks
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
34
|
+
# def self.extended target
|
35
|
+
# task_factory target
|
36
|
+
# end
|
37
|
+
#
|
38
|
+
# def self.task_factory target
|
39
|
+
# settings = target.settings
|
40
|
+
#
|
41
|
+
# end
|
42
42
|
|
43
43
|
end
|
44
44
|
|
data/lib/flak/thor/generate.rb
CHANGED
@@ -52,10 +52,13 @@ module Flak
|
|
52
52
|
directory("doc")
|
53
53
|
empty_directory("plugins")
|
54
54
|
directory("config")
|
55
|
-
|
55
|
+
template( "LICENSE.tt", "LICENSE.txt")
|
56
|
+
template( "README.tt", "README.txt")
|
56
57
|
template( "product.mel.tt" , "script/maya/erb/#{name}.mel.erb" ) if opts[:maya_module]
|
57
58
|
template( "INSTALL.tt" , "script/shell/erb/INSTALL_#{name.upcase}.erb")
|
58
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" )
|
59
62
|
|
60
63
|
create_file "project.yml" do
|
61
64
|
Flak::TargetFile.project(name,opts)
|
@@ -69,13 +69,19 @@ module Flak
|
|
69
69
|
h = Hash.new
|
70
70
|
h['name'] = "#{name.camelize}Project"
|
71
71
|
h['templates'] = ["release", "doc"]
|
72
|
+
|
72
73
|
if options[:maya_module]
|
73
74
|
h['maya_script_copy_files'] = ["script/maya/*.mel","script/maya/*.py","script/maya/*.pyc"]
|
74
75
|
h['maya_script_erb_files'] = ["script/maya/erb/*.mel.erb","script/maya/erb/*.py.erb"]
|
75
76
|
h['templates'] << "maya"
|
77
|
+
h['maya_modules_erb_files'] = ["script/maya/modules/*.erb"]
|
76
78
|
end
|
79
|
+
|
77
80
|
h['release_script_copy_files'] = ["script/shell/*.sh"]
|
78
81
|
h['release_script_erb_files'] = ["script/shell/erb/*.erb"]
|
82
|
+
h['package_erb_files'] = ["script/package/*.erb"]
|
83
|
+
h['default_copy_files'] = ["LICENSE.*", "README.*"]
|
84
|
+
|
79
85
|
YAML::dump(h)
|
80
86
|
end
|
81
87
|
|
@@ -100,14 +100,14 @@ if (-f ${HOME}/.bashrc) then
|
|
100
100
|
echo "appending <%%= @settings[:product_name] %> source commands to ${HOME}/.bashrc"
|
101
101
|
|
102
102
|
echo "# The following lines have been added by <%%= @settings[:product_name] %>" >> ${HOME}/.bashrc
|
103
|
-
echo 'export <%%= @settings[:product_name].upcase
|
104
|
-
echo '[[ -e "${<%%= @settings[:product_name].upcase %>}/bin/<%%= @settings[:product_name] %>.sh" ]] && . "${<%%= @settings[:product_name].upcase %>}/bin/<%%= @settings[:product_name] %>.sh" # 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
105
|
|
106
106
|
echo ""
|
107
107
|
echo "*********NOW RUN THESE COMMANDS OR OPEN A NEW SHELL***********"
|
108
108
|
echo ""
|
109
|
-
echo "export <%%= @settings[:product_name].upcase
|
110
|
-
echo '. ${<%%= @settings[:product_name].upcase %>}/bin/<%%= @settings[:product_name] %>.sh'
|
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
111
|
echo ""
|
112
112
|
echo "**************************************************************"
|
113
113
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
=======
|
2
|
+
License
|
3
|
+
=======
|
4
|
+
|
5
|
+
Copyright (C) <%= Time.now.strftime("%Y") %> Reliance MediaWorks
|
6
|
+
All rights reserved.
|
7
|
+
|
8
|
+
This file contains confidential and proprietary source code, belonging to
|
9
|
+
Reliance MediaWorks. Its contents may not be disclosed to third parties,
|
10
|
+
copied or duplicated in any form, in whole or in part, without prior permission.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
os_linux64:
|
2
2
|
compiler: '/opt/gcc412/bin/gcc412'
|
3
3
|
linker: '/opt/gcc412/bin/g++412'
|
4
4
|
archiver: '/usr/bin/ar rv'
|
@@ -46,7 +46,7 @@ os_linux_64:
|
|
46
46
|
compiler_options:
|
47
47
|
- '-O3'
|
48
48
|
|
49
|
-
|
49
|
+
os_darwin64:
|
50
50
|
compiler: '/usr/bin/gcc'
|
51
51
|
linker: '/usr/bin/g++'
|
52
52
|
archiver: '/usr/bin/libtool -static -arch_only i386'
|
@@ -90,7 +90,7 @@ os_darwin:
|
|
90
90
|
compiler_options:
|
91
91
|
- '-O3'
|
92
92
|
|
93
|
-
|
93
|
+
os_win64:
|
94
94
|
compiler: 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/amd64/cl.exe'
|
95
95
|
linker: 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/amd64/link.exe'
|
96
96
|
archiver: 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/amd64/lib.exe'
|
@@ -4,11 +4,11 @@ delight_version: '10.0.12'
|
|
4
4
|
|
5
5
|
shader_release_prefix: 'delight/shader'
|
6
6
|
|
7
|
-
|
7
|
+
os_linux64:
|
8
8
|
delight_location: '/software/3delight'
|
9
9
|
|
10
|
-
|
10
|
+
os_darwin64:
|
11
11
|
delight_location: '/Applications/Graphics/3Delight'
|
12
12
|
|
13
|
-
|
13
|
+
os_win64:
|
14
14
|
delight_location: 'C:/Program Files/3Delight'
|
@@ -11,19 +11,15 @@ product_name: "<%= name %>"
|
|
11
11
|
# The revision number for your product. You can set it to any string.
|
12
12
|
product_revision: "0.0.1"
|
13
13
|
|
14
|
-
# set to true if you dont want the os name appended to the release directory.
|
15
|
-
# For example, if the module contains only cross platform scripts, there is
|
16
|
-
# no need to build for every platform. In that case, set agnostic to true.
|
17
|
-
agnostic: false
|
18
|
-
|
19
14
|
# Your full name is used for documentation and also to set plugin vendor
|
20
15
|
# information. This is done by adding these fields as compiler options
|
21
16
|
# which are then picked up in the plugin code. In the case of a maya plugin
|
22
17
|
# this happens in the initialize_plugin function.
|
23
|
-
|
18
|
+
<% names = `finger`.split("\n")[1].split(' ')[1..2] -%>
|
19
|
+
author_name: "<%= names.collect {|p| p.capitalize}.join(' ') %>"
|
24
20
|
|
25
21
|
# Your email address is used for documentation.
|
26
|
-
author_email: "<%=
|
22
|
+
author_email: "<%= names.join('.') %>@relianceada.com"
|
27
23
|
|
28
24
|
# Set the root of the release location here. Notice how specific locations
|
29
25
|
# are set for different platforms and named configurations.
|
@@ -36,16 +32,18 @@ author_email: "<%= ENV['USER'] %>@example.com"
|
|
36
32
|
# type in a shell at the project root:
|
37
33
|
# rake -T | grep inspect
|
38
34
|
# and run one of the rake commands for a tool or the project.
|
39
|
-
|
40
|
-
tools_directory: "${HOME}/tools"
|
41
|
-
os_linux_64:
|
35
|
+
os_darwin64:
|
42
36
|
configuration_debug:
|
43
|
-
tools_directory: "${HOME}/tools"
|
37
|
+
tools_directory: "${HOME}/tools/darwin64"
|
44
38
|
configuration_release:
|
45
|
-
tools_directory: "/
|
46
|
-
|
39
|
+
tools_directory: "/software/package/darwin64"
|
40
|
+
os_linux64:
|
47
41
|
configuration_debug:
|
48
|
-
tools_directory: "
|
42
|
+
tools_directory: "${HOME}/tools/linux64"
|
49
43
|
configuration_release:
|
50
|
-
tools_directory: "/
|
51
|
-
|
44
|
+
tools_directory: "/software/package/linux64"
|
45
|
+
os_win64:
|
46
|
+
configuration_debug:
|
47
|
+
tools_directory: "/cygdrive/c/cygwin/${HOME}/tools/win64"
|
48
|
+
configuration_release:
|
49
|
+
tools_directory: "/software/package/win64"
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
1
|
+
os_linux64:
|
2
2
|
include_paths:
|
3
3
|
- '/usr/local/include/GL'
|
4
4
|
lib_paths: []
|
5
5
|
frameworks:
|
6
6
|
- 'GL'
|
7
7
|
compiler_options: []
|
8
|
-
|
8
|
+
os_darwin64:
|
9
9
|
frameworks:
|
10
10
|
- 'OpenGL'
|
11
|
-
|
11
|
+
os_win64:
|
12
12
|
libs:
|
13
13
|
- 'opengl32'
|
14
14
|
- 'glu32'
|
@@ -14,11 +14,11 @@ maya_scripted_plugin_destination: 'maya/plug-ins'
|
|
14
14
|
|
15
15
|
maya_precompiled_plugin_destination: 'maya/plug-ins'
|
16
16
|
|
17
|
-
|
17
|
+
os_linux64:
|
18
18
|
autodesk_location: '/usr/autodesk'
|
19
19
|
|
20
|
-
|
20
|
+
os_darwin64:
|
21
21
|
autodesk_location: '/Applications/Autodesk'
|
22
22
|
|
23
|
-
|
23
|
+
os_win64:
|
24
24
|
autodesk_location: 'C:/Program Files/Autodesk'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
os_linux64:
|
2
2
|
libs:
|
3
3
|
- 'OpenMayalib'
|
4
4
|
- 'dl'
|
@@ -38,7 +38,7 @@ os_linux_64:
|
|
38
38
|
- 'Foundation'
|
39
39
|
- 'IMFbase'
|
40
40
|
- 'm'
|
41
|
-
|
41
|
+
os_darwin64:
|
42
42
|
maya_relative_lib_path: 'Maya.app/Contents/MacOS'
|
43
43
|
maya_relative_inc_path: 'devkit/include'
|
44
44
|
compiler_options:
|
@@ -66,7 +66,7 @@ os_darwin:
|
|
66
66
|
- 'Foundation'
|
67
67
|
- 'IMFbase'
|
68
68
|
- 'm'
|
69
|
-
|
69
|
+
os_win64:
|
70
70
|
libs:
|
71
71
|
- 'Foundation'
|
72
72
|
- 'OpenMaya'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
libs:
|
2
2
|
- 'OpenMaya'
|
3
3
|
|
4
|
-
|
4
|
+
os_linux64:
|
5
5
|
libs:
|
6
6
|
- 'OpenMayalib'
|
7
7
|
- 'dl'
|
@@ -19,7 +19,7 @@ os_linux_64:
|
|
19
19
|
- '-Wall'
|
20
20
|
target_extension: 'so'
|
21
21
|
|
22
|
-
|
22
|
+
os_darwin64:
|
23
23
|
libs:
|
24
24
|
- 'Foundation'
|
25
25
|
- 'OpenMaya'
|
@@ -44,7 +44,7 @@ os_darwin:
|
|
44
44
|
includes:
|
45
45
|
- 'maya/OpenMayaMac.h'
|
46
46
|
|
47
|
-
|
47
|
+
os_win64:
|
48
48
|
libs:
|
49
49
|
- 'Foundation'
|
50
50
|
- 'OpenMaya'
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
<%=name%>_destination: '<%=name%>/lib'
|
4
4
|
|
5
|
-
|
5
|
+
os_linux64:
|
6
6
|
<%=name%>_location: '/usr/<%=name%>_co'
|
7
7
|
|
8
|
-
|
8
|
+
os_darwin64:
|
9
9
|
<%=name%>_location: '/Applications/<%=name.camelize%>Co'
|
10
10
|
|
11
|
-
|
11
|
+
os_win64:
|
12
12
|
<%=name%>_location: 'C:/Program Files/<%=name.camelize%> Co'
|
@@ -31,9 +31,9 @@ global proc <%= name %>(string $parentUI) {
|
|
31
31
|
// melSourceExcludes:string[] If any mel scripts should not be sourced, put them in this array
|
32
32
|
// docLocation:string Documentation index URL, can be a relative or absolute path, or a web URL
|
33
33
|
// If a relative path is used, it will be relative to the <%= name %> directory
|
34
|
-
// devMode:int Adds a menu that
|
34
|
+
// devMode:int Adds a menu that simplifies reloading of plugins
|
35
35
|
|
36
36
|
// global string $gMainWindow;
|
37
37
|
|
38
|
-
module.initialize("<%= name %>", $parentUI ,{},{},"
|
38
|
+
module.initialize("<%= name %>", $parentUI ,{},{},"doc/index.html", 0);
|
39
39
|
}
|
@@ -1,31 +1,31 @@
|
|
1
|
-
<%
|
2
|
-
# append <%=
|
3
|
-
export PATH=$PATH:${<%=
|
1
|
+
<% path = "#{name.upcase}_PROJECT_PATH" -%>
|
2
|
+
# append <%= path %> bin paths to PATH
|
3
|
+
export PATH=$PATH:${<%= path %>}/bin
|
4
4
|
|
5
5
|
<% if project_options[:delight] -%>
|
6
|
-
# append <%=
|
7
|
-
export PATH=$PATH:${<%=
|
6
|
+
# append <%= path %> delight paths to bin
|
7
|
+
export PATH=$PATH:${<%= path %>}/delight/procedural
|
8
8
|
|
9
|
-
# append <%=
|
9
|
+
# append <%= path %> delight resource paths
|
10
10
|
|
11
11
|
if [[ -n $DL_SHADERS_PATH ]] ;
|
12
|
-
then export DL_SHADERS_PATH=.:${<%=
|
13
|
-
else export 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
14
|
fi
|
15
15
|
|
16
16
|
if [[ -n $DL_PROCEDURALS_PATH ]] ;
|
17
|
-
then export DL_PROCEDURALS_PATH=.:${<%=
|
18
|
-
else export 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
19
|
fi
|
20
20
|
|
21
21
|
|
22
22
|
<% end -%>
|
23
23
|
|
24
24
|
<% if project_options[:nuke] -%>
|
25
|
-
# append <%=
|
25
|
+
# append <%= path %> nuke resource paths
|
26
26
|
|
27
27
|
if [[ -n $NUKE_PATH ]] ;
|
28
|
-
then export NUKE_PATH=.:${<%=
|
29
|
-
else export NUKE_PATH=.:${<%=
|
28
|
+
then export NUKE_PATH=.:${<%= path %>}/nuke/scripts:${NUKE_PATH} ;
|
29
|
+
else export NUKE_PATH=.:${<%= path %>}/nuke/scripts ;
|
30
30
|
fi
|
31
31
|
<% end -%>
|
@@ -0,0 +1,24 @@
|
|
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
|
+
}
|
data/lib/flak/thor/wizard.rb
CHANGED
@@ -9,7 +9,7 @@ module Flak
|
|
9
9
|
asker = Thor::Shell::Basic.new
|
10
10
|
opts = Hash.new
|
11
11
|
|
12
|
-
asker.say("Flak can set up environment variables for this project based on the tools it contains. So please answer the following questions:")
|
12
|
+
#asker.say("Flak can set up environment variables for this project based on the tools it contains. So please answer the following questions:")
|
13
13
|
|
14
14
|
opts[:maya_module] = asker.yes?("Will this project contain a Maya module? (y/n)")
|
15
15
|
|
data/lib/flak/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.8
|
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-
|
12
|
+
date: 2012-03-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &70253149612240 !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: *
|
24
|
+
version_requirements: *70253149612240
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: awesome_print
|
27
|
-
requirement: &
|
27
|
+
requirement: &70253149608760 !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: *
|
35
|
+
version_requirements: *70253149608760
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nanoc
|
38
|
-
requirement: &
|
38
|
+
requirement: &70253149608240 !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: *
|
46
|
+
version_requirements: *70253149608240
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sass
|
49
|
-
requirement: &
|
49
|
+
requirement: &70253149607740 !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: *
|
57
|
+
version_requirements: *70253149607740
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: RedCloth
|
60
|
-
requirement: &
|
60
|
+
requirement: &70253149607220 !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: *
|
68
|
+
version_requirements: *70253149607220
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: yard
|
71
|
-
requirement: &
|
71
|
+
requirement: &70253149606660 !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: *
|
79
|
+
version_requirements: *70253149606660
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: redcarpet
|
82
|
-
requirement: &
|
82
|
+
requirement: &70253149606140 !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: *
|
90
|
+
version_requirements: *70253149606140
|
91
91
|
description: VFX tool build and documentation framework based on rake with thor generators
|
92
92
|
email:
|
93
93
|
- julian.mann@gmail.com
|
@@ -137,6 +137,8 @@ files:
|
|
137
137
|
- lib/flak/thor/junk/junk.rb
|
138
138
|
- lib/flak/thor/target_file.rb
|
139
139
|
- lib/flak/thor/templates/INSTALL.tt
|
140
|
+
- lib/flak/thor/templates/LICENSE.tt
|
141
|
+
- lib/flak/thor/templates/README.tt
|
140
142
|
- lib/flak/thor/templates/Rakefile.tt
|
141
143
|
- lib/flak/thor/templates/config/cpp.yml.tt
|
142
144
|
- lib/flak/thor/templates/config/delight.yml.tt
|
@@ -190,12 +192,14 @@ files:
|
|
190
192
|
- lib/flak/thor/templates/gitignore.tt
|
191
193
|
- lib/flak/thor/templates/init.mel.tt
|
192
194
|
- lib/flak/thor/templates/maya_plugin_cpp.tt
|
195
|
+
- lib/flak/thor/templates/module.tt
|
193
196
|
- lib/flak/thor/templates/name_cpp.tt
|
194
197
|
- lib/flak/thor/templates/name_h.tt
|
195
198
|
- lib/flak/thor/templates/plugin.rb.tt
|
196
199
|
- lib/flak/thor/templates/plugin.yml.tt
|
197
200
|
- lib/flak/thor/templates/product.mel.tt
|
198
201
|
- lib/flak/thor/templates/product.sh.tt
|
202
|
+
- lib/flak/thor/templates/raia_package.tt
|
199
203
|
- lib/flak/thor/wizard.rb
|
200
204
|
- lib/flak/version.rb
|
201
205
|
- target.graffle
|