Changeset 444
- Timestamp:
- 10/25/08 23:10:40 (5 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
publishing/scripts/publish_toolbox.py (modified) (11 diffs)
-
tools/LinuxConnection/LinuxReadme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/publishing/scripts/publish_toolbox.py
r443 r444 1 1 2 __author__ = "Alexander Behrens (behrens@lfb.rwth-aachen.de) "3 __version__ = "$Revision: 0. 1$"4 __date__ = "$Date: 2008/10/ 01$"5 __copyright__ = "Copyright (c) 2008 Alexander Behrens "2 __author__ = "Alexander Behrens (behrens@lfb.rwth-aachen.de), Linus Atorf" 3 __version__ = "$Revision: 0.2 $" 4 __date__ = "$Date: 2008/10/25$" 5 __copyright__ = "Copyright (c) 2008 Alexander Behrens, Linus Atorf" 6 6 7 7 … … 30 30 #print message 31 31 #os.system(message) 32 os.system(''.join(('matlab -automation -wait -r "cd(\'', sys.path[0], '\'); publish_mfiles(); exit;"')))32 os.system(''.join(('matlab -automation -wait -r "cd(\'', os.getcwd(), '\'); publish_mfiles(); exit;"'))) 33 33 34 34 … … 372 372 print "--------------------------------------------------------------" 373 373 print "Create html files from /doc/m2html/*.m files..." 374 message = []; 375 message.append('matlab -nosplash -r') 376 message.append(' "publish_mfiles2html(') 377 message.append("'") 378 message.append(output_dir) 379 message.append("', '") 380 message.append(input_dir) 381 message.append("'") 382 for file in m_files: 383 message.append(", '") 384 message.append(file) 385 message.append("'") 386 message.append('); exit;"') 387 message = ''.join(message) 374 #message = "" 375 #message.append('matlab -automation -wait -r "cd(') 376 #message.append("'") 377 #message.append(os.getcwd()) 378 #message.append("');") 379 #message.append(' publish_mfiles2html(') 380 #message.append("'") 381 #message.append(output_dir) 382 #message.append("', '") 383 #message.append(input_dir) 384 #message.append("'") 385 #for file in m_files: 386 # message.append(", '") 387 # message.append(file) 388 # message.append("'") 389 #message.append('); exit;"') 390 #message = ''.join(message) 391 message = 'matlab -automation -wait -r "cd(' + "'" + "%s'); publish_mfiles2html('%s', '%s', '" % (os.getcwd(), output_dir, input_dir) 392 message = message + "', '".join(m_files) + "'); " + 'exit;"' 393 388 394 print message 389 395 os.system(message) 396 #('matlab -automation -wait -r "cd(\'', os.getcwd(), '\') 390 397 #os.sytem('matlab -nosplash -r "publish_mfile2html(%s, %s); exit;"' % test) 391 398 … … 541 548 out_private_dir = os.path.join(output_dir, "private") 542 549 out_demos_dir = os.path.join(output_dir, "demos") 550 out_tools_dir = os.path.join(output_dir, "tools") 543 551 544 552 out_doc_dir = os.path.join(output_dir, "doc") … … 556 564 557 565 558 dir_list = [out_private_dir, out_demos_dir, 566 dir_list = [out_private_dir, out_demos_dir, out_tools_dir, 559 567 out_doc_dir, out_doc_examples_dir, out_doc_programming_dir, out_doc_tools_dir, 560 568 out_doc_functions_dir, out_doc_functions_help_dir, … … 594 602 595 603 # publish toolbox mfiles 596 # TODO: Funktions übergabe nach MATLAB funktioniert nicht wirklich604 # TODO: Funktionsuebergabe nach MATLAB funktioniert nicht wirklich 597 605 publish_toolbox_mfiles(wg_publish_dir, mfiles_dir, out_tmp_mfileshtml) 598 606 … … 632 640 (filepath, filename) = os.path.split(in_file) 633 641 filenames.append(filename) 634 #publish_m2html_files(out_tmp_m2html, doc_m2html_dir, filenames)642 publish_m2html_files(out_tmp_m2html, doc_m2html_dir, filenames) 635 643 636 644 # remove styles … … 646 654 (filepath, filename) = os.path.split(in_file) 647 655 filenames.append(filename) 648 #publish_m2html_files(out_tmp_examples, demos_dir, filenames)656 publish_m2html_files(out_tmp_examples, demos_dir, filenames) 649 657 650 658 # remove styles … … 657 665 658 666 # copy demos directory 667 print 668 print "--------------------------------------------------------------" 669 print "Copy demo files..." 659 670 files = glob.glob(os.path.join(demos_dir, "*.m")) 660 671 for in_file in files: … … 669 680 (filepath, filename) = os.path.split(in_file) 670 681 filenames.append(filename) 671 #publish_m2html_files(out_tmp_tools, tools_dir, filenames)682 publish_m2html_files(out_tmp_tools, tools_dir, filenames) 672 683 673 684 # remove styles … … 676 687 677 688 678 689 # copy tools directory 690 print 691 print "--------------------------------------------------------------" 692 print "Copy tools files..." 693 files = [] 694 files.extend(glob.glob(os.path.join(tools_dir, "*.m"))) 695 files.extend(glob.glob(os.path.join(tools_dir, "*.fig"))) 696 for in_file in files: 697 shutil.copy(in_file, out_tools_dir) 698 699 # overwrite generated files with html versions if existing... 700 files = [] 701 files.extend(glob.glob(os.path.join(tools_dir, "*.png"))) 702 files.extend(glob.glob(os.path.join(tools_dir, "*.html"))) 703 for in_file in files: 704 shutil.copy(in_file, out_doc_tools_dir) 705 706 707 # clean up: delete temp-dir!!! 708 print 709 print "--------------------------------------------------------------" 710 print "Clean up: Delete tmp-folder..." 711 shutil.rmtree(out_tmp, True) # True ignores errors! -
trunk/tools/LinuxConnection/LinuxReadme.txt
r312 r444 49 49 http://libusb.wiki.sourceforge.net/ or download it using your packet manager 50 50 (e.g. Debian's apt-get). If the package "libusb" does not work, please try 51 installing "libusb -dev".51 installing "libusb0", the latest version "libusb-0.xx", or "libusb-dev". 52 52 53 53 This was just one step. The second thing to do is making connected NXT devices appear
