Skip to content

Commit af6d135

Browse files
committed
Simplify how-to instructions on publishing a new revision of the lists
1 parent 95a4e7d commit af6d135

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ history: bin/lists
6565
mailing:
6666
mkdir $@
6767

68+
LISTREV := $(shell xpath -q -e 'substring(issueslist/@revision,2)' xml/lwg-issues.xml)
69+
70+
zip-file: lwg$(LISTREV).zip
71+
72+
lwg$(LISTREV).zip: lists
73+
@cd mailing && zip ../$@ \
74+
lwg-active.html lwg-closed.html lwg-defects.html \
75+
lwg-index.html lwg-index-open.html lwg-status.html lwg-toc.html
76+
@echo Created $@
77+
6878
lists: mailing bin/lists dates meta-data/paper_titles.txt
6979
bin/lists
7080

@@ -115,7 +125,7 @@ meta-data/section.data: meta-data/annex-f meta-data/networking-section.data bin/
115125
cat meta-data/lfts-v3-section.data >> $@.tmp
116126
$(call update,$@)
117127

118-
.PHONY: all pgms clean distclean lists history
128+
.PHONY: all pgms clean distclean lists history zip-file
119129

120130
dates: meta-data/dates
121131

how-to-docs.html

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,15 @@ <h2>Generate Issues Lists for a Mailing</h2>
144144
responsibility for publishing the issues lists by the Library Working Group chair. They are recorded for future
145145
reference to ease the burden on incoming chairs.</p>
146146
<ol>
147-
<li>inspect <code>git branch</code> to confirm that you are on the <code>master</code> branch</li>
147+
<li>Inspect <code>git branch</code> to confirm that you are on the <code>master</code> branch</li>
148148
<li><code>git pull</code> any last changes that may have been committed by others at github</li>
149149
<li>Confirm that the issues data is in its publishable state</li>
150150
<li>Push the current branch to github with a pre-mailing commit message
151151
<ol>
152-
<li><code>git commit -a -m&quot;<i>commit message</i>&quot;</code></li>
152+
<li><code>git commit -a -m &quot;<i>commit message</i>&quot;</code></li>
153153
<li><code>git push</code></li>
154154
</ol>
155155
</li>
156-
<li>Fork a new branch to hold the final mailing with <code>git checkout -b <i>branch-name</i></code></li>
157156
<li>Update <code>xml/lwg-issues.xml</code> with:
158157
<ol>
159158
<li>The final 'R' revision of the list (provisional lists use a 'D')</li>
@@ -169,13 +168,14 @@ <h2>Generate Issues Lists for a Mailing</h2>
169168
<li>(this mailing's revision history will be generated by the software)</li>
170169
</ol>
171170
</li>
172-
<li>Generate the lists only - do <b>not</b> run the generate-<i>and-publish</i> script above</li>
171+
<li>Generate the lists (<code>make lists</code>)</li>
173172
<li>Inspect the generated lists in the <code>mailing</code> directory</li>
174173
<li>Correct any problems, and repeat the process until satisfied</li>
175-
<li>Commit changes to git branch, with a suitable commit message</li>
176-
<li>Zip the whole <code>mailing</code> directory, and email it to Keld Simmonsen</li>
174+
<li>Commit changes to git, with a suitable commit message</li>
175+
<li>Create a zip file by running <code>make zip-file</code> and email it to Keld Simmonsen
176+
</li>
177177
</ol>
178-
<p>Now it is time to prepare the branch for the next mailing. This work should be completed <i>before</i> merging back to master.</p>
178+
<p>Now it is time to prepare the files for the next mailing.</p>
179179
<ol>
180180
<li>Update <code>xml/lwg-issues.xml</code> with:
181181
<ol>
@@ -192,18 +192,13 @@ <h2>Generate Issues Lists for a Mailing</h2>
192192
</ol>
193193
</li>
194194
<li>Replace <code>metadata/lwg-toc.old.html</code> with <code>mailing/lwg-toc.html</code> (note the name change, adding <code>.old</code></li>
195-
<li>Generate the lists only - do <b>not</b> run the generate-<i>and-publish</i> script above</li>
195+
<li>Generate the lists (<code>make lists</code>)</li>
196196
<li>Confirm that the document numbers are provisional, and the revision history is correct for the next mailing preview</li>
197197
<li>Repeat the process until satisfied</li>
198-
<li>Commit the git branch with an appropriate commit comment - <i>do not merge yet</i></li>
199-
<li>Run <code>git checkout master</code> to switch back to the <code>master</code> branch
200-
<li>Run <code>git pull</code> to ensure the current branch is in synch with github
201-
<li>Run <code>git merge <i>branch-name</i></code> where <code><i>branch-name</i></code> matches the branch above</li>
202-
<li>Resolve any conflicts (typically there are none)</li>
203-
<li>Regenerate the issues lists again, to confirm that branch and tools are in a good state</li>
198+
<li>Commit to git with an appropriate commit message</li>
199+
<li>Regenerate the issues lists again, to confirm that XML files and tools are in a good state</li>
204200
<li>Run <code>git status</code> to confirm there are no unexpected last minute edits that are not committed</li>
205201
<li>Run <code>git push</code> to publish the updated <code>master</code> branch</li>
206-
<li>Regenerate <i>and publish</i> the interim issues lists as described in the Add-an-issue process</li>
207202
<li>Notify any collaborators to pull the updated <code>master</code> branch - the main list is open for business again</li>
208203
</ol>
209204

0 commit comments

Comments
 (0)