6 # Bail if things fail and be verbose about what we are doing
9 # Arguments are as follows: file destdir chunksize description
15 # Make sure we can read the file.
18 # Create clean working area to stick file chunks and list in
19 rm -rf ${DEST} || true
22 # Split the file into pieces
23 prefix=`basename $FILE`
24 dd if=${FILE} bs=16k iseek=1 | split -b ${CHUNK_SIZE}k - ${DEST}/${prefix}.
26 # Create a special file for the first 16k that gets stuck on the boot
28 files=`ls ${DEST}/${prefix}.*`
29 first=`echo "${files}" | head -1`
30 bootchunk="${DEST}/${prefix}.boot"
31 dd if=${FILE} of=${bootchunk} bs=16k count=1
33 # Create the split index file
34 echo `basename ${bootchunk}` "\"Boot floppy\"" > ${DEST}/${prefix}.split
36 for file in ${files}; do
37 echo `basename ${file}` "\"${DESCR} floppy ${i}\"" >> ${DEST}/${prefix}.split