ash: Expand here-documents in the current shell environment
[oweals/busybox.git] / applets / busybox.mkll
index 6d61f7e82d56fc9f2b4b2887f036927a2950537a..68dbf216262a6cd6a6f64d24a4cbe1c94b62108b 100755 (executable)
@@ -14,7 +14,7 @@ CONFIG_H=${1:-include/autoconf.h}
 APPLETS_H=${2:-include/applets.h}
 $HOSTCC -E -DMAKE_LINKS -include $CONFIG_H $APPLETS_H |
   awk '/^[ \t]*LINK/{
-       dir=substr($2,8)
+       dir=substr($2,7)
        gsub("_","/",dir)
        if(dir=="/ROOT") dir=""
        file=$3