summaryrefslogtreecommitdiff
path: root/distrib/sparc64/common
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-04-25 22:10:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-04-25 22:10:29 +0000
commit0f3a67b6008df6643ef6787e386175c4bfb6d6d6 (patch)
tree985267ce0a21ca63665ec40d439302609367a834 /distrib/sparc64/common
parent050fd36bed43544d1f47ed357e82eecdaea517c3 (diff)
runlist.sh & list2sh.awk unification
Diffstat (limited to 'distrib/sparc64/common')
-rw-r--r--distrib/sparc64/common/Makefile.inc9
-rw-r--r--distrib/sparc64/common/runlist.sh13
2 files changed, 6 insertions, 16 deletions
diff --git a/distrib/sparc64/common/Makefile.inc b/distrib/sparc64/common/Makefile.inc
index 7b0ab095852..47000833ce3 100644
--- a/distrib/sparc64/common/Makefile.inc
+++ b/distrib/sparc64/common/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.3 2002/04/21 07:30:58 deraadt Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2002/04/25 22:10:28 deraadt Exp $
TOP= ${.CURDIR}/..
@@ -7,6 +7,7 @@ IMAGE= mr.fs
CBIN?= instbin
CRUNCHCONF?= ${.CURDIR}/../common/${CBIN}.conf
LISTS?= ${.CURDIR}/list
+UTILS?= ${.CURDIR}/../../miniroot
MOUNT_POINT= /mnt
MTREE= ${.CURDIR}/../common/mtree.conf
@@ -33,7 +34,8 @@ ${FS}: bsd.rd
newfs -m 0 -o space -i 524288 -c 80 ${VND_RDEV}
mount ${VND_DEV} ${MOUNT_POINT}
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
- TARGDIR=${MOUNT_POINT} sh ${TOP}/common/runlist.sh ${LISTFLOPPY}
+ TARGDIR=${MOUNT_POINT} UTILS=${UTILS} \
+ sh ${UTILS}/runlist.sh ${LISTFLOPPY}
/usr/mdec/installboot -v ${DESTDIR}/usr/mdec/bootblk ${VND_CRDEV}
@echo ""
@df -i ${MOUNT_POINT}
@@ -91,7 +93,8 @@ ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
do_files:
mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
- REV=${REV} TARGDIR=${MOUNT_POINT} sh ${TOP}/common/runlist.sh ${LISTS}
+ REV=${REV} TARGDIR=${MOUNT_POINT} UTILS=${UTILS} \
+ sh ${UTILS}/runlist.sh ${LISTS}
clean cleandir:
/bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}*.cache \
diff --git a/distrib/sparc64/common/runlist.sh b/distrib/sparc64/common/runlist.sh
deleted file mode 100644
index 356287640de..00000000000
--- a/distrib/sparc64/common/runlist.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-# $OpenBSD: runlist.sh,v 1.1 2001/10/10 04:21:02 deraadt Exp $
-
-if [ "X$1" = "X-d" ]; then
- SHELLCMD=cat
- shift
-else
- SHELLCMD="sh"
-fi
-
-( while [ "X$1" != "X" ]; do
- cat $1
- shift
-done ) | awk -f ${TOPDIR}/list2sh.awk | ${SHELLCMD}