pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/misc Relax the values that CTYPE can take for chang...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f149990c8994
branches: trunk
changeset: 542048:f149990c8994
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Apr 30 16:22:18 2008 +0000
description:
Relax the values that CTYPE can take for changes-entry and related
targets. Values are now case-insensitive, and the expanded set of values
that can be used are:
Added => add*
Updated => up*
Removed => rem*, rm
Renamed, Moved => ren*, mov*, mv
This changes is purely for usability reasons -- I have trouble remembering
the exact values, and I don't like to type with capitalization unless.
diffstat:
mk/misc/developer.mk | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 43677d07fc8a -r f149990c8994 mk/misc/developer.mk
--- a/mk/misc/developer.mk Wed Apr 30 13:38:14 2008 +0000
+++ b/mk/misc/developer.mk Wed Apr 30 16:22:18 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: developer.mk,v 1.11 2007/11/29 23:35:37 gdt Exp $
+# $NetBSD: developer.mk,v 1.12 2008/04/30 16:22:18 jlam Exp $
#
# Public targets for developers:
#
@@ -50,14 +50,14 @@
_CDATE_cmd= ${DATE} -u +%Y-%m-%d
_NETBSD_LOGIN_NAME_cmd= ${ID} -nu
-.if ${CTYPE} == "Updated"
+.if !empty(CTYPE:tl:Mup*) # updated
_CE_MSG1= Updated ${PKGPATH} to ${PKGVERSION}
-.elif ${CTYPE} == "Removed"
+.elif !empty(CTYPE:tl:Mrem*) || !empty(CTYPE:tl:Mrm) # removed
# XXX Check OLDNAME, and if so add " successor ${OLDNAME}".
_CE_MSG1= Removed ${PKGPATH}
-.elif ${CTYPE} == "Added"
+.elif !empty(CTYPE:tl:Madd*) # added
_CE_MSG1= Added ${PKGPATH} version ${PKGVERSION}
-.elif ${CTYPE} == "Renamed" || ${CTYPE} == "Moved"
+.elif !empty(CTYPE:tl:Mren*) || !empty(CTYPE:tl:Mmov*) || !empty(CTYPE:tl:Mmv)
. if defined(TO)
. if exists(${PKGSRCDIR}/${TO})
_CE_MSG1= ${CTYPE} ${PKGPATH} to ${TO}
Home |
Main Index |
Thread Index |
Old Index