It seems that the export script is run before the sitemap.xml file is generated. Which of course makes it impossible to alter the sitemap.xml file from the script. I need to change the sitemap.xml file because I have to rename my files from "...html" to "...html.de" etc. to use Apaches multi-views for different languages.
So I would like to see two things fixed:
Allow filenames for pages of any form and don't implicitly use a fixed and forced ".html" extension. This is an artificial limitation.
Run the export script only after ALL files etc. have been generated.
Sorry for the lack of replies - we're busy finishing the upcoming release.
The export script is supposed to run after all files have been written, so we could be looking at some bug. Can you try adding a sleep statement in your script? This will pause execution and give time for the sitemap to show up. Something like this:
#!/bin/bash
cd $1
sleep 1 # Pauses execution for 1 second
# Do something with your sitemap file here.