aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-09-03 16:45:43 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-09-03 16:45:43 +0800
commit7d94a53c6cf7d5cb77f393b42cca66d800a913e7 (patch)
treef6659bd49c952c24010dd07e425807b45a986b06 /misc
parent20d9b3ab6bcf68eb5fce47d49dc77dbbb74f327e (diff)
downloadfreebsd-ports-gnome-7d94a53c6cf7d5cb77f393b42cca66d800a913e7.tar.gz
freebsd-ports-gnome-7d94a53c6cf7d5cb77f393b42cca66d800a913e7.tar.zst
freebsd-ports-gnome-7d94a53c6cf7d5cb77f393b42cca66d800a913e7.zip
- Update maintainer section: copied from bapt's work in misc/usbids
Diffstat (limited to 'misc')
-rw-r--r--misc/pciids/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/misc/pciids/Makefile b/misc/pciids/Makefile
index 9c9ad9596e2d..1bbbe8f52f87 100644
--- a/misc/pciids/Makefile
+++ b/misc/pciids/Makefile
@@ -34,13 +34,11 @@ MS_WRKSRC= ${WRKSRC}/tmp
maketar: do-clean extract
@${MKDIR} ${MS_WRKSRC}/
@${FETCH_CMD} -o ${MS_WRKSRC}/${MS_DISTFILES} ${MS_MASTER_SITE}${MS_DISTFILES}
- @${GREP} '^# Version: [0-9.]\{10\}$$' ${MS_WRKSRC}/${MS_DISTFILES} \
- | ${SED} -e 's|^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$$|\1\2\3|' \
- > ${MS_VERSIONFILE}
+ @${AWK} '/^# Version/ { gsub(/\./, "", $$3); print $$3 }' ${MS_WRKSRC}/${MS_DISTFILES} > ${MS_VERSIONFILE}
@${MKDIR} ${MS_WRKSRC}/${PORTNAME}-${PORTVERSION}/ ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/
@${MV} ${MS_WRKSRC}/${MS_DISTFILES} ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/
@${CP} ${WRKSRC}/${MS_DISTFILES} ${MS_WRKSRC}/${PORTNAME}-${PORTVERSION}/${MS_DISTFILES}
- @(cd ${MS_WRKSRC}/ && ${DIFF} -u ${PORTNAME}-${PORTVERSION}/${MS_DISTFILES} ${PORTNAME}-${MS_VERSION}/${MS_DISTFILES} > ${MS_DIFF}) || ${TRUE}
+ -@cd ${MS_WRKSRC}/ && ${DIFF} -u ${PORTNAME}-${PORTVERSION}/${MS_DISTFILES} ${PORTNAME}-${MS_VERSION}/${MS_DISTFILES} > ${MS_DIFF}
@if [ -s ${MS_DIFF} ]; then \
${CP} -i ${MS_DIFF} ${.CURDIR}/; \
cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${PORTNAME}-${MS_VERSION}.tar.xz ${PORTNAME}-${MS_VERSION}/; \