pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/chef Distfiles comes with a strange encoding.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5a3bd5c551ac
branches:  trunk
changeset: 501160:5a3bd5c551ac
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Mon Oct 17 20:59:27 2005 +0000

description:
Distfiles comes with a strange encoding.
Updated checksum, it is just an encoding problem
Add ${TR} magic to fix encoding
This fixes PR 31639

diffstat:

 converters/chef/Makefile |  7 +++++--
 converters/chef/distinfo |  6 +++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 9362f8272891 -r 5a3bd5c551ac converters/chef/Makefile
--- a/converters/chef/Makefile  Mon Oct 17 20:34:46 2005 +0000
+++ b/converters/chef/Makefile  Mon Oct 17 20:59:27 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2005/04/11 21:45:08 tv Exp $
+# $NetBSD: Makefile,v 1.8 2005/10/17 20:59:27 tonio Exp $
 #
 
 DISTNAME=      chef.l
@@ -21,7 +21,10 @@
 INSTALLATION_DIRS=     bin
 
 do-extract:
-       ${CP} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${WRKDIR}/chef.l
+       # deal with the dos encoding of the file
+       ${CP} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${WRKDIR}/chef.l.tmp
+       cd ${WRKSRC} && ${TR} '\015' '\n' < chef.l.tmp > chef.l
+       cd ${WRKSRC} && ${RM} chef.l.tmp
 
 do-build:
        cd ${WRKSRC} && ${LEX} chef.l
diff -r 9362f8272891 -r 5a3bd5c551ac converters/chef/distinfo
--- a/converters/chef/distinfo  Mon Oct 17 20:34:46 2005 +0000
+++ b/converters/chef/distinfo  Mon Oct 17 20:59:27 2005 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2005/02/23 16:12:33 agc Exp $
+$NetBSD: distinfo,v 1.3 2005/10/17 20:59:27 tonio Exp $
 
-SHA1 (chef.l.txt) = 6bb58b4b42b08dbbbeb4649cf7f057e8aa74f1e1
-RMD160 (chef.l.txt) = 02855be02fcb40427d3f3e32dd60ea17ae974e16
+SHA1 (chef.l.txt) = 87d95cb4e0a7110a6aa11d02ba454a93c811e8c3
+RMD160 (chef.l.txt) = 0a659d431391e54cfa1779481af953f41d0697d7
 Size (chef.l.txt) = 2428 bytes



Home | Main Index | Thread Index | Old Index