Date:2010-08-27 19:11:54 (10 years 1 month ago)
Author:Werner Almesberger
Commit:43d512c30a2d0d1d43a9f176276d7b84665bdff7
Message:Only use commits that change anything we care about. Accelerates full build of ben-wpan/atrf by 70%, build from cache by 35%.

- scripts/schhist2web: only extract commits that change a .pro, .sch, or
.lib file
- scripts/schhist2web: when building the differences, skip commits missing
in cache
- scripts/schhist2web: use last cached commit as head instead of asking git
for the current HEAD
Files: scripts/schhist2web (4 diffs)

Change Details

scripts/schhist2web
122122mkdir -p "$out/names"
123123mkdir -p "$cache"
124124
125head=
125126for n in $first `git rev-list --reverse $first..HEAD`; do
126echo Processing $n
127    git show --pretty=format:'' --name-only $n |
128      egrep -q '\.sch$|\.pro$|\.lib$' || continue
129    echo Processing $n
127130    new=`gitenealogy "$dir/$sch" | sed "/^$n /s///p;d"`
128131    if [ ! -z "$new" ]; then
129132    echo Name change $schname to $new 1>&2
...... 
141144    touch "$out/names/"`basename "$m" .ppm`
142145    done
143146    trap 0
147    head=$n
144148done
145149
150if [ -z "$head" ]; then
151    echo "no usable head found" 2>&1
152    exit 1
153fi
154
146155index="$out/index.html"
147156cat <<EOF >"$index"
148157<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
...... 
155164    echo "<TD><B>$m</B>" >>"$index"
156165done
157166
158head=`git rev-list HEAD~1..HEAD`
159167next="$head"
160168for n in `git rev-list $first..HEAD~1` $first; do
169    [ -d "$cache/ppm_$n" ] || continue
161170    empty=true
162171    s="<TR><TR>"
163172    mkdir -p "$out/diff_$next" "$out/thumb_$next"
...... 
201210EOF
202211    mkdir -p "$out/diff_$next" "$out/thumb_$next"
203212        echo "<PRE>"
204        git log --pretty=short $n..$next |
213        git log --pretty=short $next~1..$next |
205214          sed 's/&/&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'
206215        echo "</PRE>"
207216    ) >>"$index"

Archive Download the corresponding diff file



interactive