- Update maintainer section: copied from bapt's work in misc/usbids

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2014-09-03 08:45:43 +00:00
parent 3a7b911fbf
commit bf423393a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367177

View file

@ -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}/; \