Summary Files Commits Branches @commit @diff @stats
path: root / meta / meta.awk
diff options
context:
space:
mode:
1 files changed, 0 insertions, 18 deletions
-rw-r--r--meta/meta.awk18
diff --git a/meta/meta.awk b/meta/meta.awk
deleted file mode 100644
index e439fc4..0000000
--- a/meta/meta.awk
+++ /dev/null
@@ -1,18 +0,0 @@
-BEGIN {
- sitemap = ENVIRON["DST"] "/sitemap.xml"
- print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" ORS \
- "<urlset" ORS \
- "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" ORS \
- "xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9" ORS \
- "http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\"" ORS \
- "xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">" > sitemap
-
- for (i = ARGC; i > 0; --i) {
- if (!ARGV[i]) continue
-
- #-- Add to sitemap --#
- print "<url><loc>" ENVIRON["URL"] substr(ARGV[i], length(ENVIRON["DST"]) + 1) "</loc><lastmod>" date "</lastmod><priority>1.0</priority></url>" > sitemap
- }
-
- print "</urlset>" > sitemap
-}