diff options
author | crees <crees@FreeBSD.org> | 2011-10-31 04:29:53 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2011-10-31 04:29:53 +0800 |
commit | e0d9676eaba81618c9c90b3044fa027673827c94 (patch) | |
tree | 8b6dd7ec84954ee1661b7b318b46cbbd5fb02a30 /ports-mgmt | |
parent | ba9bb1c2ac3bfe30bac8357533367f2f85735909 (diff) | |
download | freebsd-ports-gnome-e0d9676eaba81618c9c90b3044fa027673827c94.tar.gz freebsd-ports-gnome-e0d9676eaba81618c9c90b3044fa027673827c94.tar.zst freebsd-ports-gnome-e0d9676eaba81618c9c90b3044fa027673827c94.zip |
Add PORTREVISION and PORTEPOCH to Synopsis of submitted PRs.
PR: ports/154809
Submitted by: milki <milki@rescomp.berkeley.edu>
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/porttools/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/porttools/files/patch-cmd_submit.in | 31 |
2 files changed, 32 insertions, 1 deletions
diff --git a/ports-mgmt/porttools/Makefile b/ports-mgmt/porttools/Makefile index 21f1b276cc0b..cb335d7d90f7 100644 --- a/ports-mgmt/porttools/Makefile +++ b/ports-mgmt/porttools/Makefile @@ -7,7 +7,7 @@ PORTNAME= porttools PORTVERSION= 0.99 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ports-mgmt MASTER_SITES= SF diff --git a/ports-mgmt/porttools/files/patch-cmd_submit.in b/ports-mgmt/porttools/files/patch-cmd_submit.in new file mode 100644 index 000000000000..0932a80a2692 --- /dev/null +++ b/ports-mgmt/porttools/files/patch-cmd_submit.in @@ -0,0 +1,31 @@ +$FreeBSD$ + +From bugs.freebsd.org/154809 + +Porttools will now include PORTREVISION and PORTEPOCH in PRs sent + +--- cmd_submit.in.old 2011-02-15 12:55:54.000000000 -0800 ++++ cmd_submit.in 2011-02-15 12:59:51.000000000 -0800 +@@ -146,6 +146,7 @@ + # Collect information about the port + PORTNAME="`make -V PKGNAMEPREFIX``make -V PORTNAME``make -V PKGNAMESUFFIX`" + PORTVERSION="`make -V PORTVERSION`" ++PORTREVISION="`make -V PORTREVISION`" + PKGNAME="`make -V PKGNAME`" + CATEGORY="`make -V CATEGORIES | sed -E 's/^([^ ]+).*$/\1/'`" + MAINTAINER="`make -V MAINTAINER`" +@@ -194,8 +195,14 @@ + # Override some parameters if submitting an update to a newer + # version of an existing port + CLASS="update" ++ if [ "${PORTREVISION}" = "0" ] ++ then + SUFFIX="update to ${PORTVERSION}" + DESCRIPTION="- Update to ${PORTVERSION}" ++ else ++ SUFFIX="update to ${PORTVERSION}_${PORTREVISION}" ++ DESCRIPTION="- Update to ${PORTVERSION}_${PORTREVISION}" ++ fi + fi + + # Check to see if maintainership was requested |