changed how the template option was parsed

git-svn-id: file:///home/svn/framework3/trunk@12728 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2011-05-26 02:04:05 +00:00
parent 970b0a424a
commit 3a4926a8fe
1 changed files with 2 additions and 8 deletions

View File

@ -340,14 +340,8 @@ if opts[:encode]
end
end
if opts[:template]
idx = opts[:template].rindex("/")
len = opts[:template].length
path = opts[:template][0..idx]
altexe = opts[:template][idx..len]
end
exeopts = { :inject => opts[:inject], :template_path => path, :template => altexe }
exeopts = { :inject => opts[:inject], :template_path => File.dirname(opts[:template]), :template => File.basename(opts[:template]) }
if opts[:nopsled]
puts opts[:arch].class
@ -408,4 +402,4 @@ when /war/i
else
print_error("Unsupported format")
exit
end
end