summaryrefslogtreecommitdiff
path: root/misc/ibutton-pdkit/scripts/post-patch
diff options
context:
space:
mode:
authortsarna <tsarna@pkgsrc.org>2000-12-18 23:33:32 +0000
committertsarna <tsarna@pkgsrc.org>2000-12-18 23:33:32 +0000
commit9c6f948e85c25777905f4a07bac2718f07bbcce1 (patch)
tree2ea04df9cb3a2edd6937c8bc36c9f98be2fdbaeb /misc/ibutton-pdkit/scripts/post-patch
parentfeebf1f942bc9c61491f14e4e08d87f027c00b0d (diff)
downloadpkgsrc-9c6f948e85c25777905f4a07bac2718f07bbcce1.tar.gz
ibutton-pdkit from Damon Brodie in PR#11641
public domain kit for Dallas Semiconductor ibuttons
Diffstat (limited to 'misc/ibutton-pdkit/scripts/post-patch')
-rw-r--r--misc/ibutton-pdkit/scripts/post-patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/misc/ibutton-pdkit/scripts/post-patch b/misc/ibutton-pdkit/scripts/post-patch
new file mode 100644
index 00000000000..97088ecbd20
--- /dev/null
+++ b/misc/ibutton-pdkit/scripts/post-patch
@@ -0,0 +1,21 @@
+#!/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