aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-01-24 20:54:15 +0800
committerobrien <obrien@FreeBSD.org>2002-01-24 20:54:15 +0800
commit1cb57ce6f12ea1f3db6437276be360ba4471e79c (patch)
tree600952d11b6a8ffcce3b95881bb09fe68fe9d5a5 /editors
parent7941090757c9110c1564d9de094fd09957c82463 (diff)
downloadfreebsd-ports-graphics-1cb57ce6f12ea1f3db6437276be360ba4471e79c.tar.gz
freebsd-ports-graphics-1cb57ce6f12ea1f3db6437276be360ba4471e79c.tar.zst
freebsd-ports-graphics-1cb57ce6f12ea1f3db6437276be360ba4471e79c.zip
Use printf(1) to reduce the logic speggetti here.
Submitted by: alfred (the basic idea)
Diffstat (limited to 'editors')
-rw-r--r--editors/vim/Makefile26
1 files changed, 7 insertions, 19 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index 52972eaef2e..7848ed80646 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -7,7 +7,8 @@
#
PORTNAME?= vim
-PORTVERSION= 6.0.150
+PATCHLEVEL= 150
+PORTVERSION= 6.0.${PATCHLEVEL}
PORTREVISION?= 0
CATEGORIES?= editors
MASTER_SITES= ftp://nuxi.ucdavis.edu/pub/vim/unix/ \
@@ -20,24 +21,11 @@ MASTER_SITES= ftp://nuxi.ucdavis.edu/pub/vim/unix/ \
DISTNAME= vim-${PORTVERSION:C/\.[0-9]*$//}
PATCH_SITES= ${MASTER_SITES:S/unix/patches/}
-# 0xy
-.for t in 0 1 2 3 4 5 6 7 8 9
-.for o in 0 1 2 3 4 5 6 7 8 9
-PATCHFILES+= ${PORTVERSION:C/\.[0-9]*$//}.0${t}${o}
-.endfor
-.endfor
-# 1xy where y covers 0-9
-.for t in 0 1 2 3 4
-.for o in 0 1 2 3 4 5 6 7 8 9
-PATCHFILES+= ${PORTVERSION:C/\.[0-9]*$//}.1${t}${o}
-.endfor
-.endfor
-# 1xy remander
-.for t in 5
-.for o in 0
-PATCHFILES+= ${PORTVERSION:C/\.[0-9]*$//}.1${t}${o}
-.endfor
-.endfor
+PATCHFILES!= p=0 ; \
+ while [ $$p -le ${PATCHLEVEL} ] ; do \
+ printf "${PORTVERSION:C/\.[0-9]*$//}.%03d " $$p ; \
+ p=$$(($$p + 1)) ; \
+ done
# bits to remove
BADPATCHES= 000 012 027 035 048 053 064 070 073 087 093 106 107 115 116 117 119 121 122 123 125 135 137 138
.for p in ${BADPATCHES}