Subject: CVS commit: wip/runawk
From: Aleksey Cheusov
Date: 2010-03-04 18:22:25
Message id: E1NnEkz-0002tY-2W@sfp-cvsdas-2.v30.ch3.sourceforge.com

Log Message:

Update to version 0.20.0

  MAJOR CHANGES:
  ========================================
  New module: fieldwidths.awk:
    By default AWK interpreter splits input lines into tokens
    according to regular expression that defines "spaces" between them
    using special variable FS. Sometimes it is useful to define a
    fixed-size fields for tokens. This is what this module is for. The
    functionality of fieldwidths.awk is very close to GNU awk's
    FIELDWIDTHS variable but is available for all flavours of AWK ;-)

  New module: tmpfile.awk:
    This module provides a function `tmpfile' for generating temporary
    filenames. All these filenames are under temporary directory
    created (if necessary) by runawk(1) which is removed automatically
    during normal exit or when runawk(1) reveives SIGINT, SIGQUIT,
    SIGTERM, SIGHUP or SIGPIPE. Thus, this module provides a safe way
    to work with temporary files.

  new runawk directive: #interp-var that specifies an environment
  variable name that keeps a preferred AWK interpreter. See a manual
  page for details.

  new runawk directive: #safe-use that #use module if it
  exists. Example is below. For more details see a manual page.

    foobar application:
      #!/usr/bin/env runawk
      #safe-use "~/.foobarrc" "/etc/foobar.conf"
      BEGIN {
        print foo, bar, baz
      }

    config file ~/.foobarrc for foobar application:
      BEGIN {
        foo = "foo10"
        bar = "bar20"
        baz = 123
      }

  fix in power_getopt.awk: arguments equal to "" (empty string) are
  now processed correctly.

  power_getopt.awk: after options processing ARGV [1], ARGV [2], ...,
  ARGV [ARGC-1] are set to non-option arguments.

  new in heapsort.awk: functions sift_down and sift_up.

  fix in tokenre.awk: There is no need to initialize TRE variable, it
  is already initialized to "" at startup. This fixes a problem with
  'runawk -v TRE=lalala ...'

  Minor fixes and rewords in the runawk.1 and README.

Files:
RevisionActionfile
1.43modifywip/runawk/Makefile
1.15modifywip/runawk/PLIST
1.18modifywip/runawk/distinfo