From: Thomas Veerman Date: Tue, 12 Jun 2012 18:51:17 +0000 (+0200) Subject: Not every shell understands 'let' X-Git-Tag: v3.2.1~489 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=a82a56d7881ce379a99c75acdebbbd56f86a2a8b;p=minix.git Not every shell understands 'let' --- diff --git a/releasetools/Makefile b/releasetools/Makefile index 8352da635..0eedc6f99 100644 --- a/releasetools/Makefile +++ b/releasetools/Makefile @@ -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; \