summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-30 16:22:18 +0000
committerjlam <jlam@pkgsrc.org>2008-04-30 16:22:18 +0000
commit8ac5e5fd3460a54b20dd7b7235496335ed3845e0 (patch)
treee41d7611b58247e00c7286f7f9326ea6a1e7f043 /mk
parent0d3662ee66c66ce0ed7dc9ce36d1958b01fbaa8c (diff)
downloadpkgsrc-8ac5e5fd3460a54b20dd7b7235496335ed3845e0.tar.gz
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 (limited to 'mk')
-rw-r--r--mk/misc/developer.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/misc/developer.mk b/mk/misc/developer.mk
index e2a59b6d1bc..af12c83571f 100644
--- a/mk/misc/developer.mk
+++ b/mk/misc/developer.mk
@@ -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 @@ _CYEAR_cmd= ${DATE} -u +%Y
_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}