Index: head/emulators/i386-wine-devel/Makefile =================================================================== --- head/emulators/i386-wine-devel/Makefile +++ head/emulators/i386-wine-devel/Makefile @@ -23,15 +23,4 @@ PKGINSTALL= ${.CURDIR}/files/pkg-install PKGDEINSTALL= ${PKGINSTALL} -distinfo-update: - ${RM} ${.CURDIR}/distinfo ${.CURDIR}/distinfo~ -.for osrel in 11 12 13 - ${MAKE} fetch OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} - ${MAKE} makesum OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} - ${CAT} ${.CURDIR}/distinfo >> ${.CURDIR}/distinfo~ - ${RM} ${.CURDIR}/distinfo -.endfor - ${SED} -e '2,$${' -e '/^TIMESTAMP/d' -e '}' distinfo~ > ${.CURDIR}/distinfo - ${RM} ${.CURDIR}/distinfo~ - .include Index: head/emulators/i386-wine-devel/files/distinfo-update =================================================================== --- /dev/null +++ head/emulators/i386-wine-devel/files/distinfo-update @@ -0,0 +1,23 @@ +#!/bin/sh +# This script is for maintainance only: it automatically updates distinfo. + +PORT="i386-wine-devel" +PKGNAME="$(make -V PKGNAMEPREFIX \ + -V PORTNAME \ + -V PKGNAMESUFFIX | tr -d "\n" 2> /dev/null)" + +if test "$PKGNAME" != "$PORT" +then + echo "Please run this script from the emulators/$PORT directory." + exit 1 +fi +rm -f distinfo distinfo~ +for osrel in 11 12 13 +do + make fetch OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} + make makesum OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} + cat distinfo >> distinfo~ + rm distinfo +done +sed -e '2,${' -e '/^TIMESTAMP/d' -e '}' distinfo~ > distinfo +rm distinfo~