Skip to content

Commit 5766cf9

Browse files
committed
Fix orogen create for debian packaging
Move project creation templates into the template folder under lib/. This allows to produce a working install of orogen through gem2deb.
1 parent f19c780 commit 5766cf9

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

bin/orogen

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if files.first == "create"
136136
STDERR.puts "invalid name '#{name}': names must be all lowercase, can contain alphanumeric characters and underscores and start with a letter"
137137
end
138138
FileUtils.mkdir_p path
139-
Dir.glob(File.join(rtt_cpp.base_dir, "..", "misc", "new_project", "*")) do |input_file|
139+
Dir.glob(File.join(rtt_cpp.base_dir, "orogen", "templates", "new_project", "*")) do |input_file|
140140
output_file = File.basename(input_file.gsub('NAME', name))
141141
output_file = File.join(path, output_file)
142142

lib/orogen/gen/templates.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class << self
99
attr_reader :templates
1010
end
1111

12-
# Returns the directory where Orogen's lib part sits (i.e. where
13-
# autobuild.rb and autobuild/ are)
12+
# Returns the directory where oroGen's lib part sits, i.e.
13+
# base_dir is defined by the directory where orogen.rb resides
1414
def self.base_dir
1515
File.expand_path(File.join('..', '..'), File.dirname(__FILE__))
1616
end
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)