1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Fixed the shell arithmetic to work with 4.x /bin/sh.

Tested by:	make release of HEAD on 4.10-STABLE
This commit is contained in:
Ruslan Ermilov 2004-08-26 19:15:20 +00:00
parent 59506cd39a
commit 85231d66d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134353
2 changed files with 2 additions and 2 deletions

View File

@ -1086,7 +1086,7 @@ makeFloppySet:
${RD}/floppyset/${FLOPPYBASE} ${FLPSPLITSIZE} "${FLOPPYDESC}"
( splitfile=${SPLITDIR}/`basename ${SPLITFILE}`.split ; \
lines=`cat $${splitfile} | wc -l`; \
lines=$$((lines - 1)) ; \
lines=$$(($$lines - 1)) ; \
for line in `jot $$lines`; do \
file=`head -n $$(($${line} + 1)) $${splitfile} | tail -1 | cut -f 1 -d ' '` ; \
sh -e ${DOFS_SH} ${RD}/floppies/${FLOPPYBASE}$${line}.flp \

View File

@ -35,5 +35,5 @@ echo `basename ${bootchunk}` "\"Boot floppy\"" > ${DEST}/${prefix}.split
i=1
for file in ${files}; do
echo `basename ${file}` "\"${DESCR} floppy ${i}\"" >> ${DEST}/${prefix}.split
i=$((i + 1))
i=$(($i + 1))
done