Not every shell understands 'let'

This commit is contained in:
Thomas Veerman 2012-06-12 20:51:17 +02:00 committed by Thomas Veerman
parent 4def69f293
commit a82a56d788

View file

@ -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; \