Skip to content

Commit 67d7e9c

Browse files
committed
WI/WC script pair updates
1 parent 19a1e06 commit 67d7e9c

File tree

3 files changed

+74
-13
lines changed

3 files changed

+74
-13
lines changed

UWC

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ close FH;
222222
if (@ARGV > 1) {
223223
open FH, "$ARGV[1]";
224224
} else {
225-
open FH, "Meta/WC |";
225+
open FH, "Meta/WC generate |";
226226
}
227227
$new_wc = parse_whats_cooking(\*FH);
228228
close FH;

WC

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,46 @@
44
master_at=$(git rev-parse --verify refs/heads/master)
55
next_at=$(git rev-parse --verify refs/heads/next)
66

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"
734

835
cat <<EOF
9-
Subject: What's cooking in git.git (topics)
36+
Subject: What's cooking in git.git ($monthname $year, #$issue; $dow, $date)
1037
X-master-at: $master_at
1138
X-next-at: $next_at
1239
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+
--------------------------------------------------
1842
1943
EOF
2044

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

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,44 @@ log () {
1010
git shortlog -w76,2,4 --no-merges "$@"
1111
}
1212

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
1851

1952
tagged=`git rev-parse --not --verify hold/sa/maint`
2053
list=`git rev-list $tagged refs/heads/maint 2>/dev/null`

0 commit comments

Comments
 (0)