Skip to content

Commit

Permalink
Removed "ISO_DATE" and "QM_WWW_URL" macros from homepage sources
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinson committed Jan 12, 2015
1 parent eac071a commit 630319d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions share/macros.make
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# When I can test for regressions instantly, I will reconsider. UGH.
#
# ~~ (c) SRW, 27 Nov 2012
# ~~ last updated 31 Dec 2014
# ~~ last updated 12 Jan 2015

SHELL := sh
ECHO := echo -e
Expand Down Expand Up @@ -181,7 +181,9 @@ define remove-source-maps
endef

define replace-iso-date
$(SED) -e 's|ISO_DATE|$(shell $(DATE) "+%Y-%m-%d")|g' $(1) > $(2)
$(SED) -e \
's|\(<lastmod>\).*\(</lastmod>\)|\1$(shell $(DATE) '+%Y-%m-%d')\2|g' \
$(1) > $(2)
endef

define replace-url-macros
Expand Down
4 changes: 2 additions & 2 deletions src/homepage/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
# http://en.wikipedia.org/wiki/Robots_exclusion_standard .
#
# ~~ (c) SRW, 12 Nov 2012
# ~~ last updated 21 Oct 2013
# ~~ last updated 12 Jan 2015

User-agent: *
Disallow: /box/
Disallow: /v1/
Sitemap: QM_WWW_URL/sitemap.xml
Sitemap: https://www.qmachine.org/sitemap.xml

#- vim:set syntax=robots:
6 changes: 3 additions & 3 deletions src/homepage/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
For more information, see https://en.wikipedia.org/wiki/Sitemaps .
~~ (c) SRW, 12 Nov 2012
~~ last updated 04 Aug 2014
~~ last updated 12 Jan 2015
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>QM_WWW_URL/</loc>
<lastmod>ISO_DATE</lastmod>
<loc>https://www.qmachine.org/</loc>
<lastmod>2015-01-12</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>

0 comments on commit 630319d

Please sign in to comment.