2 # Prepare "What's cooking in git.git"
4 master_at=$(git rev-parse --verify refs/heads/master)
5 next_at=$(git rev-parse --verify refs/heads/next)
9 echo Here are the topics that have been
11 Meta/git-topic.perl --base=master | sed -e 's/^\*./\n*/'
16 eval $(LC_ALL=C date +"monthname=%b month=%m year=%Y date=%d dow=%a")
18 lead="whats/cooking/$year/$month"
21 git ls-tree -r --name-only HEAD "$lead" | tail -n 1
25 issue=$( expr "$issue" : '.*/0*\([1-9][0-9]*\)\.txt$' )
26 issue=$(( $issue + 1 ))
30 issue=$( printf "%02d" $issue )
33 exec >"Meta/$lead/$issue.txt"
36 Subject: What's cooking in git.git ($monthname $year, #$issue; $dow, $date)
37 X-master-at: $master_at
40 What's cooking in git.git ($monthname $year, #$issue; $dow, $date)
41 --------------------------------------------------
47 git ls-tree -r --name-only HEAD "whats/cooking" | tail -n 1
50 sed -e 's/^\[New Topics\]$/[Old New Topics]/' "Meta/$last" |