Changeset 1765 in MondoRescue for branches/2.2.5/mindi-busybox/scripts


Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (16 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

Location:
branches/2.2.5/mindi-busybox/scripts
Files:
62 added
31 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/scripts/bloat-o-meter

    r821 r1765  
    1414    sys.exit(-1)
    1515
     16for f in sys.argv[1], sys.argv[2]:
     17    if not os.path.exists(f):
     18        sys.stderr.write("Error: file '%s' does not exist\n" % f)
     19        sys.exit(-1)
     20
    1621def getsizes(file):
    1722    sym = {}
    1823    for l in os.popen("nm --size-sort " + file).readlines():
    1924        size, type, name = l[:-1].split()
    20         if type in "tTdDbB":
     25        if type in "tTdDbBrR":
    2126            if "." in name: name = "static." + name.split(".")[0]
    2227            sym[name] = sym.get(name, 0) + int(size, 16)
  • branches/2.2.5/mindi-busybox/scripts/checkhelp.awk

    r821 r1765  
    33#
    44# Copyright (C) 2006 Bernhard Fischer
    5 # 
     5#
    66# This file is distributed under the terms and conditions of the
    77# MIT/X public licenses. See http://opensource.org/licenses/mit-license.html
     
    2121    }
    2222}
    23 /^[[:space:]]*help[[:space:]]*$/ {
     23/^[ \t]*help[ \t]*$/ {
    2424    help[pos] = 1;
    2525}
    26 /^[[:space:]]*bool[[:space:]]*$/ {
     26/^[ \t]*bool[ \t]*$/ {
    2727    help[pos] = 1; # ignore options which are not selectable
    2828}
     
    3232}
    3333END {
    34     for (i = 0; i < pos; i++) {
    35 #   printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
     34    for (i = 0; i <= pos; i++) {
     35#   printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
    3636        if (help[i] == 0) {
    3737            printf("%s: No helptext for '%s'\n", file[i], conf[i]);
  • branches/2.2.5/mindi-busybox/scripts/objsizes

    r821 r1765  
    11#!/bin/sh
    22
    3 printf "%9s %11s %9s %9s %s\n" "text+data" text+rodata rwdata bss filename
    4 find -name '*.o' | sed 's:^\./::' | xargs size | grep '^ *[0-9]' \
    5 | while read text data bss dec hex filename; do
     3t_text=0
     4t_data=0
     5t_bss=0
     6
     7printf "%9s %11s %9s %9s %s\n" "text+data" "text+rodata" rwdata bss filename
     8
     9find -name '*.o' | grep -v '^\./scripts/' | grep -vF built-in.o \
     10| sed 's:^\./::' | xargs "${CROSS_COMPILE}size" | grep '^ *[0-9]' \
     11| {
     12while read text data bss dec hex filename; do
     13    t_text=$((t_text+text))
     14    t_data=$((t_data+data))
     15    t_bss=$((t_bss+bss))
    616    printf "%9d %11d %9d %9d %s\n" $((text+data)) $text $data $bss "$filename"
    7 done \
    8 | sort
     17done
     18printf "%9d %11d %9d %9d %s\n" $((t_text+t_data)) $t_text $t_data $t_bss "TOTAL"
     19} | sort -r
Note: See TracChangeset for help on using the changeset viewer.