Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/distrib/acorn32 Pull up revision 1.4 (requested by abs ...
details: https://anonhg.NetBSD.org/src/rev/1d4f027ab8d7
branches: netbsd-2-0
changeset: 561420:1d4f027ab8d7
user: tron <tron%NetBSD.org@localhost>
date: Thu Jun 17 08:19:17 2004 +0000
description:
Pull up revision 1.4 (requested by abs in ticket #497):
Implement CRC.
diffstat:
distrib/acorn32/mksparkive.sh | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r a84ef7f0644a -r 1d4f027ab8d7 distrib/acorn32/mksparkive.sh
--- a/distrib/acorn32/mksparkive.sh Thu Jun 17 08:17:41 2004 +0000
+++ b/distrib/acorn32/mksparkive.sh Thu Jun 17 08:19:17 2004 +0000
@@ -37,14 +37,19 @@
#
# Creates a spark format archive. Some metadata is included, notably
-# filetypes, but CRC calculations and permissions are not. Filename
-# translation is performed according to RISC OS conventions.
+# filetypes, but permissions are not. Filename translation is performed
+# according to RISC OS conventions.
#
# This script is intended to provide sufficient functionality to create
# an archive for distribution of the NetBSD/acorn32 bootloader which can be
# used directly in RISC OS.
#
+if [ -z "${TOOL_SPARKCRC}" ]
+then
+ TOOL_SPARKCRC=sparkcrc
+fi
+
# Target byte order is little endian.
print2()
@@ -94,7 +99,12 @@
# File time stamp
print2 0
# CRC
- print2 0
+ if [ "$compressed" -ne 0 ]
+ then
+ print2 `${TOOL_SPARKCRC} $statfilename`
+ else
+ print2 `${TOOL_SPARKCRC} $filename`
+ fi
# Original file length
if [ "$compressed" -ne 0 ]
then
Home |
Main Index |
Thread Index |
Old Index