source: branches/help/lib/export/ae2.eft

Last change on this file was 5695, checked in by westram, 16 years ago
  • added functions to handle temporary files
    • GB_unique_filename (used pid of current process. before in most cases $ARB_PID was used, but that is only useful for arb_panic and arb_clean functionality. For normal tempfiles pid is the better choice - otherwise two processes of one ARB instance could generate the same tempfile name)
    • GB_create_tempfile
    • GB_fopen_tempfile
    • GB_is_privatefile (function for testing whether tempfiles have correct permissions - especially those tempfiles pre-generated by GB_create_tempfile and overwritten later by a shell script)
  • added GB_read_fp (similar to GB_read_file, but works on open filepointer)
  • added GB_append_suffix
  • added GB_remove_on_exit (removes files at program exit)
  • rewrote all functions creating temporary files. Files are opened in private mode (user only read/write) now and are properly removed after usage or when program exits.
  • bug-fixes:
    • GB_size_of_file(NULL)
    • GB_split_full_path (returned name as suffix if no suffix was present. Now returns NULL)
    • awt_get_selected_fullname returned /print.ps (instead of using cwd)
  • replaced String() by strdup() in GDE
  • fixed several calls to GB_unlink()
  • removed GB_getuid / GB_getpid
  • tweaked arb_panic (panicfile is private now! modified output and added cmd killall)
  • help-search now ignores comment lines in helpfiles
  • rewrote exporter (cause it was impossible to correctly handle tmp-files). Automatically appends suffix to outputfilename.
  • improved error handling in several functions
  • file selection boxes refresh automatically if directory modtime changes
  • When exporting frequencies from arb_phylo, dont write 3 files to tmp (of which 2 were always empty) - write only the one with content. I dont know what the file is good for, but since it is removed on exit now, it doesnt do any harm.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 113 bytes
Line 
1SUFFIX          ae2
2PRE_FORMAT      lib/export/genbank.eft
3SYSTEM          "arb_convert_aln -GenBank $< -AE2 $>"
Note: See TracBrowser for help on using the repository browser.