From ea79657c3b7b24ce6713d7ebbcb13128e2e2994e Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 26 Oct 2001 12:33:23 +0000 Subject: Move from a custom post-patch script to a standard package Makefile target, and do things a bit more efficiently. Remove now unnecessary script. XXX This Makefile still needs work wrt tty devices XXX --- misc/ibutton-pdkit/Makefile | 12 +++++++++++- misc/ibutton-pdkit/scripts/post-patch | 21 --------------------- 2 files changed, 11 insertions(+), 22 deletions(-) delete mode 100644 misc/ibutton-pdkit/scripts/post-patch diff --git a/misc/ibutton-pdkit/Makefile b/misc/ibutton-pdkit/Makefile index 0555f7c52f7..c152b53b6c0 100644 --- a/misc/ibutton-pdkit/Makefile +++ b/misc/ibutton-pdkit/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2001/09/09 20:36:36 agc Exp $ +# $NetBSD: Makefile,v 1.4 2001/10/26 12:33:23 agc Exp $ # DISTNAME= ulinuxgnu @@ -16,6 +16,16 @@ MAKEFILE= makefile SCRIPTS_ENV+= SED=${SED} +post-patch: + cd ${WRKSRC}; \ + ${MAKE} clean; \ + for f in *.c; do \ + ${SED} -e 's|/dev/cua0|/dev/tty00|' \ + -e 's|Linux DS2480|${OPSYS} DS2480|' \ + $$f > $$f.new; \ + ${MV} -f $$f.new $$f; \ + done + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/atod ${PREFIX}/bin/atod ${INSTALL_PROGRAM} ${WRKSRC}/count ${PREFIX}/bin/count diff --git a/misc/ibutton-pdkit/scripts/post-patch b/misc/ibutton-pdkit/scripts/post-patch deleted file mode 100644 index 97088ecbd20..00000000000 --- a/misc/ibutton-pdkit/scripts/post-patch +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# -# $Id: post-patch,v 1.1.1.1 2000/12/18 23:33:32 tsarna Exp $ -# -# This script cleans out the pre-made binaries and patches the -# com port to /dev/tty00 - -cd ${WRKSRC} -make clean - -echo s@/dev/cua0@/dev/tty00@ > sedcmd -echo s@Linux DS2480@NetBSD DS2480@ >> sedcmd - -for file in `ls *.c` -do - sed -f sedcmd < $file > $file.new - rm $file - mv $file.new $file -done - -rm sedcmd -- cgit v1.2.3