REVBUMP(1)

NAME
revbump - tool to help bump PKGREVISIONs automatically

SYNOPSIS
revbump [-h] [-p pkgsrcdir] [cat1/pkg1 ... catN/pkgN]

DESCRIPTION
revbump is a perl script for pkgsrc developers that simplifies bumping PKGREVISIONs automatically. Given a package (in category/package format) on the command line or stdin, it will try to increase the PKGREVISION for that package automatically.

revbump -h displays a short usage.

If -p is given, pkgsrcdir is used instead of the default /usr/pkgsrc.

revbump reports successful updates on stdout, and prints the package name (in category/package form) on stdout for each package where it failed.

EXAMPLES
    revbump devel/gmake x11/glib2

would bump the PKGREVISIONs of gmake and glib2, as would

    revbump  EOF
    devel/gmake
    x11/glib2
    EOF

The complete procedure for a recursive dependency bump for category/package using revbump and blbump(1) would be:

    cd /usr/pkgsrc ;
    finddepends category/package | sort -u  allbump ;
    grep buildlink3.mk allbump | sed 's/.buildlink3.mk//'  bl3bump ;
    grep -e Makefile.common -e mk$ allbump | grep -v -e buildlink3.mk -e options.mk > commonbump ;
    replace-commonbump ;
    cat allbump commonbump.replaced | sed 's,/[^/]*$,,' | sort -u  makebump ;
    revbump  makebump | tee makebump.manual ;
    # [if a package is listed in makebump.manual, handle the PKGREVISION bump manually]
    blbump  bl3bump | tee bl3bump.manual ;
    # [handle the *ABI_DEPENDS* bumps in bl3bump.manual manually, usually none] ;
    cvs diff -u `cat makebump` > cvs-diff ;
    check-cvs-diff  ;
    cvs diff `cat bl3bump makebump` | less
    cvs commit `cat bl3bump makebump`
    rm allbump bl3bump* makebump* commonbump* cvs-diff

ENVIRONMENT
PKGSRCDIR pkgsrc root directory. Defaults to /usr/pkgsrc.

SEE ALSO
blbump(1), check-cvs-diff(1), finddepends(1), replace-commonbump(1)