Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn32/stand Update the bootloader extraction prog...



details:   https://anonhg.NetBSD.org/src/rev/54ac1c30f835
branches:  trunk
changeset: 522165:54ac1c30f835
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Feb 11 22:12:22 2002 +0000

description:
Update the bootloader extraction program to be more friendly and to provide
a way to include the bootloader in the release structure

XXX it needs to honour DESTDIR one day

diffstat:

 sys/arch/acorn32/stand/export-BtNetBSD |  36 +++++++++++++++++++++++++--------
 1 files changed, 27 insertions(+), 9 deletions(-)

diffs (58 lines):

diff -r f1d39a933540 -r 54ac1c30f835 sys/arch/acorn32/stand/export-BtNetBSD
--- a/sys/arch/acorn32/stand/export-BtNetBSD    Mon Feb 11 22:09:18 2002 +0000
+++ b/sys/arch/acorn32/stand/export-BtNetBSD    Mon Feb 11 22:12:22 2002 +0000
@@ -1,14 +1,24 @@
 #!/bin/sh
 #
-# $NetBSD: export-BtNetBSD,v 1.1 2001/10/05 22:28:00 reinoud Exp $
+# $NetBSD: export-BtNetBSD,v 1.2 2002/02/11 22:12:22 reinoud Exp $
+#
 # creates all binary files from the uue files from the source tree
-# to be run in the directory next to the directory NetBSD
+# to be run in the directory next to the directory BtNetBSD
 #
 
-cp -R BtNetBSD BtNetBSD.RO
-chmod -R a+r BtNetBSD.RO
-cd BtNetBSD.RO
-find . -name CVS -exec rm -r {} \;
+
+# remember our current directory
+export CURDIR=${PWD}
+
+# first make sure no old BtNetBSD is around
+rm -rf /tmp/BtNetBSD
+
+# copy contents to /tmp/BtNetBSD
+cp -R BtNetBSD /tmp/BtNetBSD
+chmod -R a+r /tmp/BtNetBSD
+cd /tmp/BtNetBSD
+
+find . -name CVS -type d -exec rm -rf {} \;
 
 cd pling.BtNetBSD
 
@@ -28,12 +38,20 @@
 
 cd ../../..
 
-# unixfs is copied into the !BtNetBSD dir. at install time
+# unixfs is copied into the !BtNetBSD dir at install time
 cp -R pling.BtNetBSD/native unixfs
 
 mv pling.BtNetBSD \!BtNetBSD
 
+# back to /tmp again
 cd ..
-rm -f BtNetBSD.RO.tar
-tar cvf BtNetBSD.RO.tar BtNetBSD.RO
 
+# make the tar file
+rm -f ${CURDIR}/BtNetBSD.tar
+tar cvf ${CURDIR}/BtNetBSD.tar BtNetBSD
+rm -rf BtNetBSD
+
+
+# back to our origional directory (nessisary?)
+cd ${CURDIR}
+



Home | Main Index | Thread Index | Old Index