aded7dafbb6c — Norman Gray 8 months ago
Adjust build: keep URLs in one place and substitute in
4 files changed, 35 insertions(+), 15 deletions(-)

M Makefile
M README.md
M showlabels.dtx.in
M showlabels.html
M Makefile +8 -1
@@ 15,6 15,10 @@ 
 #
 # See also the suggestions at <https://ctan.org/help/upload-pkg>.
 
+HOMEPAGE=https://purl.org/nxg/dist/showlabels
+HOMEREPO=https://hg.sr.ht/~nxg/showlabels
+BUGPARADE=https://todo.sr.ht/~nxg/showlabels
+
 # VERSION and RELEASEDATE comes from the repository
 # DIST is set by a recursive call from `make dist`
 DIST=XXX-call-make-dist

          
@@ 106,7 110,10 @@ release-notes.tmpdtx: release-notes.xml
 version.sed: Makefile .hg
 	rm -f $@
 	{ echo 's|@COPYRIGHTYEARS@|$(COPYRIGHTYEARS)|'; \
-	  hg parent --template 's|@VERSION@|{ifeq(latesttagdistance, 0, "{latesttag}", "{latesttag}+{latesttagdistance}-SNAPSHOT-{node|short}")}|\ns|@RELEASEDATE@|{date(date,"%Y %B %e")}|g\ns|@RELEASEDATEN@|{date(date,"%Y/%m/%d")}|g\ns|@VCSINFO@|{node|short}, {date|rfc3339date}|\n'; \
+	  echo 's|@HOMEPAGE@|$(HOMEPAGE)|g'; \
+	  echo 's|@HOMEREPO@|$(HOMEREPO)|g'; \
+	  echo 's|@BUGPARADE@|$(BUGPARADE)|g'; \
+	  hg parent --template 's|@VERSION@|{ifeq(latesttagdistance, 0, "{latesttag}", "{latesttag}+{latesttagdistance}-SNAPSHOT-{node|short}")}|g\ns|@RELEASEDATE@|{date(date,"%Y %B %e")}|g\ns|@RELEASEDATEN@|{date(date,"%Y/%m/%d")}|g\ns|@VCSINFO@|{node|short}, {date|rfc3339date}|g\n'; \
 	} >$@
 
 style.css:

          
M README.md +18 -5
@@ 1,8 1,7 @@ 
 Showlabels
 ==========
 
-Put the names of `\labels` and other commands into the margins of a draft
-document.
+Put the names of `\labels` and other commands into the margins of a draft document.
 
 Version @VERSION@, @RELEASEDATE@;
 <https://purl.org/nxg/dist/showlabels>.

          
@@ 26,15 25,15 @@ it can be useful for `\ref` or `\begin` 
 
 Links:
 
-  * Canonical software home page: <https://purl.org/nxg/dist/showlabels>
+  * Canonical software home page: <@HOMEPAGE@>
     (use this rather than the URL it redirects to).
 
   * On CTAN: <https://www.ctan.org/pkg/showlabels>
 
   * The source code for the package is maintained
-    [at sourcehut](https://hg.sr.ht/~nxg/showlabels).
+    [at sourcehut](@HOMEREPO@).
 
-  * There's also an [issue tracker](https://todo.sr.ht/~nxg/showlabels)
+  * There's also an [issue tracker](@BUGPARADE@)
     at sourcehut.  Or you can just mail me.
 
 This work is Copyright @COPYRIGHTYEARS@, Norman Gray, and may be

          
@@ 44,5 43,19 @@ any later version.  See the distributed 
 
 For more information, see showlabels.html in the distribution.
 
+
+CTAN upload info
+----------------
+
+  * Name:           showlabels
+  * Version:        @VERSION@
+  * Maintainer:     gray@nxg.name
+  * Summary:        Put the names of `\labels` and other commands into the margins of a draft document.
+  * CTAN directory: /macros/latex/contrib/showlabels
+  * Licence:        LPPL 1.3c
+  * Home page:      @HOMEPAGE@
+  * Bug tracker:    @BUGPARADE@
+  * Repository:     @HOMEREPO@
+
 Norman Gray  
 https://nxg.me.uk

          
M showlabels.dtx.in +2 -2
@@ 284,9 284,9 @@ 
 % and the file \texttt{lppl.txt}, for the licence conditions.
 %
 % The canonical home page of the package is
-% \url{https://purl.org/nxg/dist/showlabels}, and it is on CTAN at
+% \url{@HOMEPAGE@}, and it is on CTAN at
 % \url{https://www.ctan.org/pkg/showlabels}.  The source is in
-% a repository online: \url{https://hg.sr.ht/~nxg/showlabels}.
+% a repository online: \url{@HOMEREPO@}.
 %
 % \section{Other packages}
 %

          
M showlabels.html +7 -7
@@ 20,8 20,8 @@ 
 the margins of a draft document.</p>
 <!-- This is revision @VCSINFO@ -->
 <p>Version @VERSION@, @RELEASEDATE@,
-  <a href='https://purl.org/nxg/dist/showlabels'
-    ><code>https://purl.org/nxg/dist/showlabels</code></a>.</p>
+  <a href='@HOMEPAGE@'
+    ><code>@HOMEPAGE@</code></a>.</p>
 </div>
 
 <p>This class option helps you keep track of all the labels in your

          
@@ 83,18 83,18 @@ documentation.</li>
 <p>Links:</p>
 <ul>
 <li>Canonical package home page:
-<a href="https://purl.org/nxg/dist/showlabels"
-  ><code>https://purl.org/nxg/dist/showlabels</code></a></li>
+<a href="@HOMEPAGE@"
+  ><code>@HOMEPAGE@</code></a></li>
 
 <li>On CTAN:
 <a href='https://www.ctan.org/pkg/showlabels'
   >macros/latex/contrib/showlabels</a></li>
 
 <li>The source code for the package is maintained
-<a href='https://hg.sr.ht/~nxg/showlabels'>online</a>
+<a href='@HOMEREPO@'>online</a>
 at <a href='https://sourcehut.org'>Sourcehut</a>.</li>
 
-<li>There's an <a href='https://todo.sr.ht/~nxg/showlabels'>issue
+<li>There's an <a href='@BUGPARADE@'>issue
 tracker</a> there (the issues which had accumulated on the bitbucket
 tracker were effectively lost when Bitbucket dropped support for
 Mercurial; there were few outstanding ones anyway).  Or you can just

          
@@ 110,7 110,7 @@ either version 1.3c of this licence or (
 <!-- @RELEASENOTES@ -->
 
 <div class="signature">
-<a href="http://www.astro.gla.ac.uk/users/norman/"
+<a href="https://nxg.me.uk"
 	>Norman Gray</a><br/>
 @RELEASEDATE@
 </div>