From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 21 15:05:44 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8581016A40D for ; Wed, 21 Mar 2007 15:05:44 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id E604D13C459 for ; Wed, 21 Mar 2007 15:05:43 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so345469ugh for ; Wed, 21 Mar 2007 08:05:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=E3t2tuzRq46Y7WfjmF1Ouq92rYZ5Be2Z1A0wyOokQKxVIHCNd1gewnp6+kgiCpjDLsFZuTUhneBED9i6OE8Nu2urTuZ0353er3EmuUI2cxRjbhYAFrTI4+5Gar3aSOF0tKTmZ66zwd9UfQsxEQMHaHCTq6rIvpLFkepYQDfC3Og= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=jey44yt1wRxrISWeWwO5M1hQWjW1lqf6QruSOopHry8RM692Qc9DLx8iIo6+R/IZDSrx1wwyN8uJUX9ItSQ2HZ31IVK31QRzqEL993LA3CXPbLXFrWTREkX1h/gR88X6gaA00HleuDait/4f1ETm4XJd35ga4MWq61/qj+cWj/Y= Received: by 10.67.28.4 with SMTP id f4mr3214422ugj.1174489542578; Wed, 21 Mar 2007 08:05:42 -0700 (PDT) Received: from persephone.orchid.homeunix.org ( [84.10.174.25]) by mx.google.com with ESMTP id o24sm1991118ugd.2007.03.21.08.05.41; Wed, 21 Mar 2007 08:05:41 -0700 (PDT) Message-ID: <460149C7.4060201@gmail.com> Date: Wed, 21 Mar 2007 16:05:43 +0100 From: Karol Kwiatkowski User-Agent: Thunderbird 2.0b2 (X11/20070306) MIME-Version: 1.0 To: Alexander Leidinger References: <4601219B.402@gmail.com> <20070321143737.hcrklzpsqooocksc@webmail.leidinger.net> <460141F0.6090000@gmail.com> <20070321154647.iq4avx8mpcsw84co@webmail.leidinger.net> In-Reply-To: <20070321154647.iq4avx8mpcsw84co@webmail.leidinger.net> X-Enigmail-Version: 0.94.3.0 OpenPGP: id=06E09309; url=http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc Content-Type: multipart/mixed; boundary="------------070707060504000200080405" Cc: freebsd-emulation@FreeBSD.org Subject: Re: [OT] Makefile magic [was: Re: linux-fonconfig-2.2.3_6 not X11BASE clean] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: karol.kwiat@gmail.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2007 15:05:44 -0000 This is a multi-part message in MIME format. --------------070707060504000200080405 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Alexander Leidinger wrote: > Quoting Karol Kwiatkowski (from Wed, 21 Mar 2007 > 15:32:16 +0100): > >> Alexander Leidinger wrote: > >>> You also added the backup file to the plist, just do an >>> inplace replacement without the backup (-i option). >> >> I'm probably missing something but I can't see how to do that. sed(1) >> mentions -i with zero-length extension. Then there are those lines in >> /usr/ports/Mk/bsd.port.mk: >> >> # Macro for doing in-place file editing using regexps >> REINPLACE_ARGS?= -i.bak >> REINPLACE_CMD?= ${SED} ${REINPLACE_ARGS} >> >> and whatever I put in ${REINPLACE_CMD} line after -i option I get errors >> or different extensions. > > -i'' or something like this IIRC... Doh, thanks. >> However, how about replacing ${INSTALL_DATA} with ${SED}? Patch attached. > > This doesn't take care of chown and chgrp. Right. Patch, hopefully a good one, against Makefile attached. Cheers, Karol -- Karol Kwiatkowski OpenPGP 0x06E09309 --------------070707060504000200080405 Content-Type: text/plain; name="x11-fonts.linux-fontconfig-2.2.3_6.Makefile.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="x11-fonts.linux-fontconfig-2.2.3_6.Makefile.patch" LS0tIHgxMS1mb250cy9saW51eC1mb250Y29uZmlnL01ha2VmaWxlLm9yaWcJTW9uIE1hciAx OSAwNjoxMzo1OCAyMDA3CisrKyB4MTEtZm9udHMvbGludXgtZm9udGNvbmZpZy9NYWtlZmls ZQlXZWQgTWFyIDIxIDE1OjUzOjU1IDIwMDcKQEAgLTI5LDUgKzI5LDYgQEAKIAogcG9zdC1p bnN0YWxsOgogCSR7SU5TVEFMTF9EQVRBfSAke0ZJTEVTRElSfS9mb250cy5jb25mICR7UFJF RklYfS9ldGMvZm9udHMvZm9udHMuY29uZgorCSR7UkVJTlBMQUNFX0NNRH0gLWkgJycgLWUg InN8L3Vzci9YMTFSNnwke1gxMUJBU0V9fGciICR7UFJFRklYfS9ldGMvZm9udHMvZm9udHMu Y29uZgogCiAuaW5jbHVkZSA8YnNkLnBvcnQubWs+Cg== --------------070707060504000200080405--