Commit graph

214 commits

Author SHA1 Message Date
Aleksey Cheusov
f0c80d974b NEWS and TODO files are installed to share/doc/pkg_summary-utils 2008-05-10 20:03:11 +00:00
Aleksey Cheusov
bd171ec04c Distributed pkg_src_summary needs paexec
PKGREVISION=1
2008-05-10 13:49:15 +00:00
Aleksey Cheusov
3eacfd2716 version -> 0.7.0
Major changes:

   pkg_src_summary is now "distributed" tool, i.e. it can build
   src_summary using several processes or machines.
      Examples:

      # for SMP machine
      env PSS_SLAVES=+5 pkg_src_summary ...

      # for machines in a network
      env PSS_SLAVES='host1 host2 host3' \
          PSS_PPERS=5 \
          PSS_TRANSPORT=/usr/bin/ssh pkg_src_summary ...

      PSS_PPERS variable sets a number of packages per slave that
      are built at once, defaults to 10.

   pkg_src_summary: PSS_FIELDS overrides the default
   list of generated fields

   pkg_update_src_summary: -i|--fields options specify a list of
   generated fields.
2008-05-10 11:31:05 +00:00
Aleksey Cheusov
68c98640d8 -i|--fields again 2008-05-10 08:48:22 +00:00
Aleksey Cheusov
63eb8a18f0 fix in processing args (typo) 2008-05-10 08:31:34 +00:00
Aleksey Cheusov
5f36be8ddd fixed a typo 2008-05-10 08:25:21 +00:00
Aleksey Cheusov
3ed8558be7 added: -i|--fields options 2008-05-10 08:24:55 +00:00
Aleksey Cheusov
c9cf52ea56 fix (backslashing) 2008-05-09 23:37:55 +00:00
Aleksey Cheusov
27507fb0b0 In distributed mode every slave processes PPS_PPERS (packages per slave)
packages at once. The default is 10.
2008-05-09 22:37:59 +00:00
Aleksey Cheusov
2dc458238b Environment variable PSS_FIELDS overrides the default list of fields 2008-05-09 22:14:18 +00:00
Aleksey Cheusov
e11ade294a fix for PSS_SLAVES+PSS_TRANSPORT (backslashing fields) 2008-05-09 21:59:58 +00:00
Aleksey Cheusov
f231b8d57b clean-ups 2008-05-09 20:56:18 +00:00
Aleksey Cheusov
1d09cccb0c fix for "restore_order" 2008-05-09 13:55:21 +00:00
Aleksey Cheusov
a018dfc1c1 pkg_src_summary is now "distributed" tool, i.e. it can build
src_summary using several processes or machines.

    Examples:
	# for SMP machine
        env PSS_SLAVES=+5 pkg_src_summary ...
	# for SMP machine
        env PSS_SLAVES=+5 PSS_TRANSPORT='host1 host2' pkg_src_summary ...
2008-05-09 13:14:01 +00:00
Aleksey Cheusov
a8e1934ffc fix for USE_DESTDIR=full 2008-05-09 10:48:45 +00:00
Aleksey Cheusov
8c098d0b6f Version -> 0.6.2
grepping functionality of pkg_grep_summary has been moved to a
   separate file pkg_grep_summary.awk.  Similar code fragments found
   in pkg_refresh_summary and pkg_update_src_summary use
   pkg_grep_summary.awk now.
2008-05-09 10:46:32 +00:00
Aleksey Cheusov
88db120f7e grep_summary_condition() can now return -1 2008-05-09 10:14:12 +00:00
Aleksey Cheusov
d822b29ce5 speed-ups, speedof(pkg_refresh_summary)=speedof(pkg_refresh_summary-0.6.0) 2008-05-08 13:18:53 +00:00
Aleksey Cheusov
ff64c2d309 speed-ups by ~30% 2008-05-08 12:57:45 +00:00
Aleksey Cheusov
785e720af1 pkg_refresh_summary now uses pkg_grep_summary.awk 2008-05-08 12:10:29 +00:00
Aleksey Cheusov
b0d94532fe grepping functionality of pkg_grep_summary has been moved
from pkg_grep_summary.awk (this was idea of pkg_grep_summary).
2008-05-08 11:01:22 +00:00
Aleksey Cheusov
d2e88a949f Version 0.6.1:
README file added. There are available a few examples how to use
   all these tools separately and together . You can use it as a
   titorial.
2008-05-07 20:16:12 +00:00
Aleksey Cheusov
4aa98e3ccf pkg_grep_summary added 2008-05-07 19:00:44 +00:00
Aleksey Cheusov
bfc3bfbdf3 upgrade to version -> 0.6.0:
NEW tool: pkg_grep_summary
     Run 'pkg_grep_summary -h' for a documentation.
2008-05-07 18:56:52 +00:00
Aleksey Cheusov
f9b1134918 more complete documentation 2008-05-07 18:50:13 +00:00
Aleksey Cheusov
82c36e3796 better usage message 2008-05-07 18:42:06 +00:00
Aleksey Cheusov
73a9c736fb ADDED: -h|--help options 2008-05-07 11:03:33 +00:00
Aleksey Cheusov
c8409bd772 Field and condition are checked separately
# usage: pkg_grep_summary <FIELD> <CONDITION>
  # examples:
  #   pkg_grep_summary 'PKGNAME' '$2 ~ /judy/' \
  #         < /srv/pkgsrc/pkg_src_summary.txt
  #   pkg_grep_summary 'DEPENDS' '$2 ~ /pkg_summary/' \
  #         < /srv/pkgsrc/pkg_src_summary.txt
2008-05-07 10:25:18 +00:00
Aleksey Cheusov
7b9c426e04 initial version of utility:
usage: pkg_grep_summary <TRUE_EXPR> [<FALSE_EXPR>]
  example:
    pkg_grep_summary \
       '$1 == "PKGPATH" && $2 ~ /judy/' \
       '$1 == "PKGPATH" && $2 !~ /judy/' < \
            /srv/pkgsrc/pkg_src_summary.txt
2008-05-06 23:03:26 +00:00
Aleksey Cheusov
f3139fc671 pkgrevision -> 1
requires latest awk-pkgsrc-dewey
2008-05-05 13:20:18 +00:00
Aleksey Cheusov
76babb01d6 are -> is 2008-05-04 22:24:29 +00:00
Aleksey Cheusov
98ba15c859 Version 0.5.1, by Aleksey Cheusov
FIXED: pkg_update_summary fails under Linux, Solaris, Interix and
   probably other OSes when there are no binary packages in a specified
   directory.  This happens because xargs works differently on
   NetBSD/FreeBSD and Linux/Solaris/Interix. In NetBSD/FreeBSD xargs's
   command is NOT run at all when there is no input, while on L/S/I it is
   run once without arguments and (pkg_info -X in our case) fails.

   DESCR improved

   Minor fixes in documentation ans NEWS
2008-05-04 22:19:49 +00:00
Aleksey Cheusov
29e1aa512b clean-ups, improvements 2008-05-02 22:39:36 +00:00
Aleksey Cheusov
12a0cc2e4d clean-ups, improvements 2008-05-02 21:49:28 +00:00
Aleksey Cheusov
1e59b35172 better description 2008-05-02 21:40:30 +00:00
Aleksey Cheusov
3ab8cd825a better description 2008-05-02 21:38:32 +00:00
Aleksey Cheusov
6722b803fd bad examples -> better examples 2008-04-27 15:44:44 +00:00
Aleksey Cheusov
3b88b28c96 minor fix in usage message 2008-04-27 15:43:52 +00:00
Aleksey Cheusov
6aba305ddc Version 0.5.0
Major changes:

   Lots of tasks from TODO are implemented.

   pkg_src_fetch_var:
      - minor fixes in comments
      - new options -h|--help for use message
      - new options -f|--fields|-v|--vars for specifying a list of fields
        to be generated. By default PKGNAME and PKPATH
        are generated as earlier versions did.

        Example:
          echo 'wip/distbb' | \
          pkg_src_fetch_var -f='PKGNAME PKGPATH DEPENDS BUILD_DEPENDS'

      - bmake '+=' operator is also supported

   pkg_src_summary:
      - new options -h|--help for use message
      - new options -f|--fields for specifying a list of fields
        to be generated. By default PKGNAME and PKPATH
        are generated as earlier versions did.
      - 'print-summary-data' pkgsrc target is not used anymore.
        Instead, variable's values are obtained directly by bmake.

        Side effect/incompatibility: NOTFOR and ONLYFOR are set to
        <empty_string> instead of 'any' string in case
        NOT_FOR_PLATFORM and ONLY_FOR_PLATFORM are not specified.

   pkg_micro_src_summary:
      - new options -f|--fields for specifying a list of fields
        to be generated. By default PKGNAME and PKPATH
        are generated as earlier versions did.

        Example:
          pkg_micro_src_summary -f 'PKGNAME PKGPATH DEPENDS BUILD_DEPENDS' \
                                   lang/lua wip/distbb
      - In case pkg_src_fetch_var failes pkg_micro_src_summary fallbacks
        to pkg_src_summary.
2008-04-27 11:40:49 +00:00
Aleksey Cheusov
6e62c5a866 minor clean-ups 2008-04-26 21:04:18 +00:00
Aleksey Cheusov
30d85ba675 version -> 0.4.6
fix for pkg_summary4view: doesn't depend on input fields order.
   fix for pkg_src_summary: PKGNAME and PKGPATH are printed first.
2008-04-13 12:03:20 +00:00
Aleksey Cheusov
62f681c20c version -> 0.4.5
Both pkg_micro_src_summary and pkg_src_summary generate
   nicely formatted bmake failures to stderr.
   (will be used by future versions of distbb)
2008-04-12 21:48:22 +00:00
Aleksey Cheusov
a6e23957ba FIX: Converting summary_data to pkg_summary(5) can also fail.
In this case only one package should be skipped, but
    pkg_src_summary should continue its work.
2008-04-12 21:19:57 +00:00
Aleksey Cheusov
48e166cf36 upgrade to 0.4.4
lots of fixes and improvements in manual pages
   minors fixes in utilities
2008-04-12 16:56:28 +00:00
Aleksey Cheusov
8900adb0d3 minor fixes and addons in usage message and man page 2008-04-12 16:52:45 +00:00
Aleksey Cheusov
5f5d92ddc6 lots of minor changes and fixes in man pages 2008-04-12 16:05:00 +00:00
Aleksey Cheusov
a635f1e60c options are checked after cd /usr/pkgsrc 2008-04-12 16:04:08 +00:00
Aleksey Cheusov
3e7003f644 minor corrections 2008-04-12 15:35:43 +00:00
Aleksey Cheusov
10efe9357d minor fix 2008-04-12 15:33:41 +00:00
Aleksey Cheusov
3b62e27baa addons, corrections 2008-04-12 15:33:09 +00:00
Aleksey Cheusov
28e4efdf71 upgrade to 0.4.3:
added:
      - pkg_list_all_pkgs.1
      - pkg_refresh_summary.1
2008-04-12 15:06:01 +00:00
Aleksey Cheusov
64e75700d6 minor addons 2008-04-12 15:00:25 +00:00
Aleksey Cheusov
c3e69fb072 minor addons 2008-04-11 20:29:16 +00:00
Aleksey Cheusov
57f51cd799 initial TODO list:
existing tools:

    pkg_cmp_summary:

    pkg_list_all_pkgs:
       man page
       add -h|--help option

    pkg_micro_src_summary:
       - should fallback 'pkg_src_summary -f' (also to not
                            duplicate paexec-related code)
       add -h|--help option

    pkg_refresh_summary:
       man page

    pkg_src_fetch_var:
       man page
       add -h|-help option

    pkg_src_summary:
       add -h|--help option
       -f|--fields <fields>     - fields to be generated
       'make print-summary-data' -> 'make show-vars VARNAMES=...'
       - distributed summary building using wip/paexec

    pkg_summary4view:
       add -h|--help option

    pkg_update_src_summary:
       add -h|--help option

    pkg_update_summary:

new tools:

    pkg_grep_summary - for powerful grepping
2008-04-11 20:23:19 +00:00
Aleksey Cheusov
a751f1fff3 manual pages updated 2008-04-09 21:41:22 +00:00
Aleksey Cheusov
b967571718 version -> 0.4.2
pkg_src_fetch_var:
      - read PKGPATHs instead of Makefile filenames.
        In order to Makefiles from PKGPATH, PKGSRCDIR environment
        variable is used (/usr/pkgsrc by default).
      - TAB character is used as a fields separator instead of SPC

   pkg_micro_src_summary:
      - added options: -h|--help|-f|--fields
        -f|--fields is for specifying fields to be included
        to the summary, PKGNAME and PKGPATH by default
2008-04-09 21:35:40 +00:00
Aleksey Cheusov
61f18bb5de nothing 2008-04-09 21:31:51 +00:00
Aleksey Cheusov
c79fa71122 my new religion: usage message is sent to stderr 2008-04-09 21:29:18 +00:00
Aleksey Cheusov
650b11bd14 NEWS file added
ADDED: -f|--fields option to pkg_src_fetch_var program
version -> 0.4.1
2008-04-09 20:24:18 +00:00
Aleksey Cheusov
9578edba34 fixed: CONFLICTS statements 2008-04-05 21:03:14 +00:00
Aleksey Cheusov
38d9592d96 further renamings 2008-04-05 10:40:50 +00:00
Aleksey Cheusov
bf74c0e42a fixed: nroff warnings 2008-04-05 10:37:17 +00:00
Aleksey Cheusov
5f22046ac0 pkg_src_update_summary renamed to pkg_update_src_summary
pkg_src_micro_summary  renamed to pkg_micro_src_summary
2008-04-05 10:32:53 +00:00
Aleksey Cheusov
9a9913fb8f Utilities for manipulating pkg_summary(5) files.
My wip/pkg_* packages will be removed later. All those tools are here
   now.
2008-04-05 10:14:15 +00:00