Date: Wed, 21 Feb 1996 08:37:29 +0200 From: Mark Murray <mark@grondar.za> To: asami@freebsd.org Cc: ports@freebsd.org Subject: Improvement? for the files/ directory... Message-ID: <199602210637.IAA18106@grumble.grondar.za>
next in thread | raw e-mail | index | archive | help
Hi I am continually compiling my ports collection as folks upgrade the versions of packages, and some ports have _very_ unobvious tarball names, and some have more than one. Keeping track of which one(s) is/are current is a pain, so I wasted 2 minutes of my life and came up with the following idea; Why not "wc -c" all the relevant original distribution files for each port at "make makesum" time and put those into a file in files/ (I chose "list")? I am sure that would also make life easier for other folks who every now and then need to purge the old files out of distfiles/. Here is my idea/patch for bsd.ports.mk: --- /usr/src/share/mk/bsd.port.mk Sat Feb 17 08:15:43 1996 +++ bsd.port.mk Wed Feb 21 08:25:40 1996 @@ -245,7 +245,9 @@ GMAKE?= gmake XMKMF?= xmkmf -a MD5?= /sbin/md5 +WC?= /usr/bin/wc -c MD5_FILE?= ${FILESDIR}/md5 +LIST_FILE?= ${FILESDIR}/list MAKE_FLAGS?= -f MAKEFILE?= Makefile @@ -928,9 +930,11 @@ makesum: fetch @if [ ! -d ${FILESDIR} ]; then /bin/mkdir -p ${FILESDIR}; fi @if [ -f ${MD5_FILE} ]; then /bin/rm -f ${MD5_FILE}; fi + @if [ -f ${LIST_FILE} ]; then /bin/rm -f ${LIST_FILE}; fi @(cd ${DISTDIR}; \ for file in ${DISTFILES} ${PATCHFILES:S|^|${PATCH_PRFX}|}; do \ ${MD5} $$file >> ${MD5_FILE}; \ + ${WC} $$file >> ${LIST_FILE}; \ done) .endif -- Mark Murray 46 Harvey Rd, Claremont, Cape Town 7700, South Africa +27 21 61-3768 GMT+0200 Finger mark@grondar.za for PGP key
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602210637.IAA18106>