summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-11-15 14:16:34 +0100
committerBastien Nocera <hadess@hadess.net>2022-11-15 14:16:34 +0100
commiteddc2e66ac966effad8d70d8a6ba47c168628610 (patch)
treea3e88ff9ce05cdcb41b9b024d04eda95013feae9
parentaf8e64a9670c9eb1689a34eb76470cfbc9d1cea3 (diff)
web-export: Export single-files to versioned directories
In addition to exporting introspect.dtd to introspect-1.0.dtd, also export it to 1.0/introspect.dtd. Closes: #107
-rwxr-xr-xweb-export/update.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/web-export/update.py b/web-export/update.py
index 41a36de..ccb9593 100755
--- a/web-export/update.py
+++ b/web-export/update.py
@@ -243,6 +243,9 @@ class SpecObject():
shutil.copytree('../' + os.path.dirname(self.vcs.file) + '/html', html_dir)
else:
shutil.copytree('../mpris-spec/doc/spec/', html_dir)
+ if not multiple_chunks_command:
+ file_path = os.path.join(html_dir, os.path.basename(self.vcs.file))
+ shutil.copy(path, file_path)
def latestize(self, fd):
filename_latest = '%s-latest%s' % (self.basename_no_ext, self.ext)