Not every shell understands 'let'
This commit is contained in:
parent
4def69f293
commit
a82a56d788
1 changed files with 2 additions and 1 deletions
|
@ -110,9 +110,10 @@ install:
|
|||
|
||||
cross_install:
|
||||
${INSTALL_DIR} ${DESTDIR}/multiboot
|
||||
n=0; \
|
||||
for i in ${PROGRAMS}; \
|
||||
do \
|
||||
let n=n+1 >/dev/null; \
|
||||
n=`expr $$n + 1`; \
|
||||
[ "$$n" -ge 10 ] && prefix="mod" || prefix="mod0"; \
|
||||
newname="${DESTDIR}/multiboot/$${prefix}$${n}_`basename $$i`"; \
|
||||
${INSTALL} $$i $$newname; \
|
||||
|
|
Loading…
Reference in a new issue