]> Zhao Yanbai Git Server - minix.git/commitdiff
Not every shell understands 'let'
authorThomas Veerman <tveerman@gmail.com>
Tue, 12 Jun 2012 18:51:17 +0000 (20:51 +0200)
committerThomas Veerman <thomas@minix3.org>
Mon, 18 Jun 2012 10:54:54 +0000 (10:54 +0000)
releasetools/Makefile

index 8352da635ca94bffe0dfc0dd77a4826716ed5e8f..0eedc6f996fbd1e2f61c298e6ee5713391769ee8 100644 (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;                                               \