summaryrefslogtreecommitdiff
path: root/mk/misc
diff options
context:
space:
mode:
authorjlam <jlam>2008-04-30 16:22:18 +0000
committerjlam <jlam>2008-04-30 16:22:18 +0000
commit05f91dcae8fec9a14ec4527186990159c3f93bd5 (patch)
treee41d7611b58247e00c7286f7f9326ea6a1e7f043 /mk/misc
parent10ddf14259d79ad2813959ce09d0b517f0c57b67 (diff)
downloadpkgsrc-05f91dcae8fec9a14ec4527186990159c3f93bd5.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/misc')
-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}