diff options
| author | Ron Yorston <rmy@pobox.com> | 2014-01-13 09:11:24 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2014-01-13 09:11:24 +0000 |
| commit | e6edcba4f2fc20a3e9db75ebe82d7a71094fe17c (patch) | |
| tree | af786c447cae6ca59e195b31fbae442c0b42d198 /scripts | |
| parent | 215f730e98215bff8dfacafdaa70e4a11395ad53 (diff) | |
| parent | 0f592d7fb94c5887528d0ee24020c2225ab71c28 (diff) | |
| download | busybox-w32-e6edcba4f2fc20a3e9db75ebe82d7a71094fe17c.tar.gz busybox-w32-e6edcba4f2fc20a3e9db75ebe82d7a71094fe17c.tar.bz2 busybox-w32-e6edcba4f2fc20a3e9db75ebe82d7a71094fe17c.zip | |
Merge branch 'busybox' into merge
Conflicts:
include/platform.h
scripts/basic/fixdep.c
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/basic/docproc.c | 2 | ||||
| -rw-r--r-- | scripts/basic/fixdep.c | 2 | ||||
| -rwxr-xr-x | scripts/gen_build_files.sh | 14 |
3 files changed, 14 insertions, 4 deletions
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c index b12569832..7f21443c1 100644 --- a/scripts/basic/docproc.c +++ b/scripts/basic/docproc.c | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | #include <limits.h> | 39 | #include <limits.h> |
| 40 | #include <sys/types.h> | 40 | #include <sys/types.h> |
| 41 | #include <sys/wait.h> | 41 | #include <sys/wait.h> |
| 42 | #include <alloca.h> | 42 | //bbox disabled: #include <alloca.h> |
| 43 | 43 | ||
| 44 | /* exitstatus is used to keep track of any failing calls to kernel-doc, | 44 | /* exitstatus is used to keep track of any failing calls to kernel-doc, |
| 45 | * but execution continues. */ | 45 | * but execution continues. */ |
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index b7f9e0c2f..f012551af 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
| @@ -117,7 +117,7 @@ | |||
| 117 | #ifndef __MINGW32__ | 117 | #ifndef __MINGW32__ |
| 118 | #include <arpa/inet.h> | 118 | #include <arpa/inet.h> |
| 119 | #endif | 119 | #endif |
| 120 | #include <alloca.h> | 120 | //bbox disabled: #include <alloca.h> |
| 121 | 121 | ||
| 122 | /* bbox: not needed | 122 | /* bbox: not needed |
| 123 | #define INT_CONF ntohl(0x434f4e46) | 123 | #define INT_CONF ntohl(0x434f4e46) |
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh index 0989b2fe5..e8fa831be 100755 --- a/scripts/gen_build_files.sh +++ b/scripts/gen_build_files.sh | |||
| @@ -31,7 +31,12 @@ generate() | |||
| 31 | # copy stdin to stdout | 31 | # copy stdin to stdout |
| 32 | cat | 32 | cat |
| 33 | # print everything after INSERT line | 33 | # print everything after INSERT line |
| 34 | sed -n '/^INSERT$/ { :l; n; p; bl }' "${src}" | 34 | sed -n '/^INSERT$/ { |
| 35 | :l | ||
| 36 | n | ||
| 37 | p | ||
| 38 | bl | ||
| 39 | }' "${src}" | ||
| 35 | } >"${dst}.tmp" | 40 | } >"${dst}.tmp" |
| 36 | if ! cmp -s "${dst}" "${dst}.tmp"; then | 41 | if ! cmp -s "${dst}" "${dst}.tmp"; then |
| 37 | gen "${dst}" | 42 | gen "${dst}" |
| @@ -52,7 +57,12 @@ sed -n 's@^//applet:@@p' "$srctree"/*/*.c "$srctree"/*/*/*.c \ | |||
| 52 | # We add line continuation backslash after each line, | 57 | # We add line continuation backslash after each line, |
| 53 | # and insert empty line before each line which doesn't start | 58 | # and insert empty line before each line which doesn't start |
| 54 | # with space or tab | 59 | # with space or tab |
| 55 | sed -n -e 's@^//usage:\([ \t].*\)$@\1 \\@p' -e 's@^//usage:\([^ \t].*\)$@\n\1 \\@p' \ | 60 | TAB="$(printf '\tX')" |
| 61 | TAB="${TAB%X}" | ||
| 62 | LF="$(printf '\nX')" | ||
| 63 | LF="${LF%X}" | ||
| 64 | sed -n -e 's@^//usage:\([ '"$TAB"'].*\)$@\1 \\@p' \ | ||
| 65 | -e 's@^//usage:\([^ '"$TAB"'].*\)$@\'"$LF"'\1 \\@p' \ | ||
| 56 | "$srctree"/*/*.c "$srctree"/*/*/*.c \ | 66 | "$srctree"/*/*.c "$srctree"/*/*/*.c \ |
| 57 | | generate \ | 67 | | generate \ |
| 58 | "$srctree/include/usage.src.h" \ | 68 | "$srctree/include/usage.src.h" \ |
