WI/WC script pair updates

Junio C Hamano committed Aug 6, 2008 at 18:38 UTC 67d7e9cfdf51eb914c86d82e9867693235724cf6
3 files changed +74 -13
UWC
+1 -1
@@ -222,7 +222,7 @@ close FH;
222 if (@ARGV > 1) {
223 open FH, "$ARGV[1]";
224 } else {
225 - open FH, "Meta/WC |";
225 + open FH, "Meta/WC generate |";
226 }
227 $new_wc = parse_whats_cooking(\*FH);
228 close FH;
WC
+35 -7
@@ -4,18 +4,46 @@
4 master_at=$(git rev-parse --verify refs/heads/master)
5 next_at=$(git rev-parse --verify refs/heads/next)
6
7 +case "$1" in
8 +generate)
9 + echo Here are the topics that have been
10 + echo
11 + Meta/git-topic.perl --base=master | sed -e 's/^\*./\n*/'
12 + exit
13 + ;;
14 +esac
15 +
16 +eval $(LC_ALL=C date +"monthname=%b month=%m year=%Y date=%d dow=%a")
17 +
18 +lead="whats/cooking/$year/$month"
19 +issue=$(
20 + cd Meta &&
21 + git ls-tree -r --name-only HEAD "$lead" | tail -n 1
22 +)
23 +if test -n "$issue"
24 +then
25 + issue=$( expr "$issue" : '.*/0*\([1-9][0-9]*\)\.txt$' )
26 + issue=$(( $issue + 1 ))
27 +else
28 + issue=1
29 +fi
30 +issue=$( printf "%02d" $issue )
31 +mkdir -p "Meta/$lead"
32 +
33 +exec >"Meta/$lead/$issue.txt"
34
35 cat <<EOF
9 -Subject: What's cooking in git.git (topics)
36 +Subject: What's cooking in git.git ($monthname $year, #$issue; $dow, $date)
37 X-master-at: $master_at
38 X-next-at: $next_at
39
13 -Here are the topics that have been cooking. Commits prefixed
14 -with '-' are only in 'pu' while commits prefixed with '+' are
15 -in 'next'. Others commits may be stashed in 'offcuts'.
16 -
17 -The topics list the commits in reverse chronological order.
40 +What's cooking in git.git ($monthname $year, #$issue; $dow, $date)
41 +--------------------------------------------------
42
43 EOF
44
21 -Meta/git-topic.perl --base=master | sed -e 's/^\*./\n*/'
45 +last=$(
46 + cd Meta &&
47 + git ls-tree -r --name-only HEAD "whats/cooking" | tail -n 1
48 +)
49 +Meta/UWC <"Meta/$last"
WI
+38 -5
@@ -10,11 +10,44 @@ log () {
10 git shortlog -w76,2,4 --no-merges "$@"
11 }
12
13 -echo "Subject: What's in git.git (stable)"
14 -echo "X-maint-at: $maint_at"
15 -echo "X-master-at: $master_at"
16 -echo "X-maint-was: $maint_was"
17 -echo "X-master-was: $master_was"
13 +one () {
14 + git show -s --pretty="format:%h (%s)" "$1"
15 +}
16 +
17 +eval $(LC_ALL=C date +"monthname=%b month=%m year=%Y date=%d dow=%a")
18 +
19 +lead="whats/in/$year/$month"
20 +issue=$(
21 + cd Meta &&
22 + git ls-tree -r --name-only HEAD "$lead" | tail -n 1
23 +)
24 +if test -n "$issue"
25 +then
26 + issue=$( expr "$issue" : '.*/0*\([1-9][0-9]*\)\.txt$' )
27 + issue=$(( $issue + 1 ))
28 +else
29 + issue=1
30 +fi
31 +issue=$( printf "%02d" $issue )
32 +
33 +mkdir -p "Meta/$lead"
34 +exec >"Meta/$lead/$issue.txt"
35 +
36 +cat <<EOF
37 +Subject: What's in git.git ($monthname $year, #$issue; $dow, $date)
38 +X-maint-at: $maint_at"
39 +X-master-at: $master_at"
40 +X-maint-was: $maint_was"
41 +X-master-was: $master_was"
42 +
43 +What's in git.git ($monthname $year, #$issue; $dow, $date)
44 +
45 + maint $(one maint)
46 + master $(one master)
47 +------------------------------------------------------------------------
48 +
49 +BLURB HERE
50 +EOF
51
52 tagged=`git rev-parse --not --verify hold/sa/maint`
53 list=`git rev-list $tagged refs/heads/maint 2>/dev/null`