summaryrefslogtreecommitdiff
path: root/web-export
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-11-13 12:22:20 +0100
committerBastien Nocera <hadess@hadess.net>2019-11-13 12:22:20 +0100
commit3a358314b3b2c6b755168ed92af5e2bf585c578a (patch)
tree1e4fb0926375d940c268f7f07d2813d8881b555d /web-export
parent7ebd739fa9878abbb37609591744d5633c472aae (diff)
web-export: Fix idle-inhibit and secret-service specs
They were generated, their directories were created, but the data didn't end up in the directories. Closes: #48
Diffstat (limited to 'web-export')
-rwxr-xr-xweb-export/update.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/web-export/update.py b/web-export/update.py
index 7c22462..34f098d 100755
--- a/web-export/update.py
+++ b/web-export/update.py
@@ -226,7 +226,13 @@ class SpecObject():
raise Exception('Cannot convert \'%s\' to HTML.\nThe command was %s' % (path, one_chunk_command))
self.one_chunk = True
- if multiple_chunks_command:
+ if multiple_chunks_command and self.spec_dir in SELF_BUILT:
+ retcode = subprocess.call(multiple_chunks_command)
+ if retcode != 0:
+ raise Exception('Cannot convert \'%s\' to multiple-chunks HTML.\nThe command was %s' % (path, multiple_chunks_command))
+ self.multiple_chunks = True
+ shutil.copytree('../' + os.path.dirname(self.vcs.file) + '/html', html_dir)
+ elif multiple_chunks_command:
safe_mkdir(html_dir)
retcode = subprocess.call(multiple_chunks_command)
if retcode != 0: