Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce-depends.awk: Reduce "pkg>1" and "pkg<2" into "pkg>1<2". #18

Closed
wants to merge 3 commits into from

Commits on Sep 28, 2017

  1. reduce-depends.awk: Reduce "pkg>1" and "pkg<2" into "pkg>1<2".

    Enhance the reduce-depends.awk script to reduce a larger set of
    dependencies into a single dependency.  The patterns representing
    intervals of version numbers (can be open-ended) are of the form:
    
    	pkg>lower
    	pkg>=lower
    	pkg<upper
    	pkg<=upper
    	pkg>lower<upper
    	pkg>lower<=upper
    	pkg>=lower<upper
    	pkg>=lower<=upper
    
    These patterns are now condensed into a single dependency of the
    same form.  For example, given the following patterns:
    
    	pkg>=1.0
    	pkg>2.0
    	pkg<3.0
    	pkg<=4.0
    	pkg>=2.5<3.5
    
    the reduced pattern becomes:
    
    	pkg>=2.5<3.0
    
    Add the test script used to help with refactoring and adding the
    new feature to the script.
    
    This is a mostly complete rewrite of the script; change the
    license to the standard 2-clause BSD license used by TNF.
    johnnylam88 committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    f677ca6 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2017

  1. reduce-depends.awk: Preserve order of dependencies.

    Restore feature from the old script by preserving the order of the
    dependencies with respect to their package directories.  This is
    important because the buildlink framework causes dependency lists
    emitted to have the property where each package of the list only
    depends on packages listed before it.
    johnnylam88 committed Sep 30, 2017
    Configuration menu
    Copy the full SHA
    40a2219 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2017

  1. reduce-depends.awk: Fix the ERE used to match version strings.

    The pkg_info(1) manpage says that underscore (_) is valid and is
    equivalent to a period (.) in a version string.
    johnnylam88 committed Oct 1, 2017
    Configuration menu
    Copy the full SHA
    5f97278 View commit details
    Browse the repository at this point in the history