tools/cpee in cpee-2.1.2 vs tools/cpee in cpee-2.1.4
- old
+ new
@@ -92,16 +92,16 @@
s = WEBrick::HTTPServer.new(:Port => 8080, :DocumentRoot => cockpit)
trap("INT"){ s.shutdown }
s.start
end
elsif command == 'cpui'
- if !File.exists?(p1)
- FileUtils.cp_r(cockpit,p1)
- else
- FileUtils.cp_r(Dir.glob(File.join(cockpit,'*')).delete_if{|e| e =~ /\.json/ || e=~ /legacy/ })
- puts "Directory already exists, updating ..."
- end
- js_libs(p1)
+ if !File.exists?(p1)
+ FileUtils.cp_r(cockpit,p1)
+ else
+ FileUtils.cp_r(Dir.glob(File.join(cockpit,'*')).delete_if{|e| e =~ /\.json/ || e=~ /legacy/ })
+ puts "Directory already exists, updating ..."
+ end
+ js_libs(p1)
elsif command == 'convert'
Dir['*.xml'].each do |f|
XML::Smart.modify(f) do |doc|
doc.register_namespace 'd', 'http://cpee.org/ns/description/1.0'
doc.register_namespace 'p', 'http://riddl.org/ns/common-patterns/properties/1.0'