summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-08-22 20:29:49 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-08-27 09:31:30 (GMT)
commit8e35c23242cbc7aba16463f4f9ffcc6cc17d66f4 (patch)
tree1289f786f2b9d42a5fa396d5afcec8be40e74cf7 /tools
parentcce8094fb001c327cc08483eb488ba8508b9bf25 (diff)
downloadmxe-8e35c23242cbc7aba16463f4f9ffcc6cc17d66f4.zip
mxe-8e35c23242cbc7aba16463f4f9ffcc6cc17d66f4.tar.gz
mxe-8e35c23242cbc7aba16463f4f9ffcc6cc17d66f4.tar.bz2
move index.html to docs/
See https://github.com/mxe/mxe/issues/1500
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build-pkg.lua3
-rwxr-xr-xtools/skeleton.py4
2 files changed, 3 insertions, 4 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 4954eb0..2e7a52c 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -975,7 +975,7 @@ local function makeDebs(items, item2deps, item2ver, item2files)
end
local function getMxeVersion()
- local index_html = io.open 'index.html'
+ local index_html = io.open 'docs/index.html'
local text = index_html:read('*all')
index_html:close()
return text:match('Release ([^<]+)')
@@ -1032,7 +1032,6 @@ local function makeMxeSourcePackage()
'README.md',
'docs',
'ext',
- 'index.html',
'src',
'plugins',
'tools',
diff --git a/tools/skeleton.py b/tools/skeleton.py
index 66e89e3..28a60a9 100755
--- a/tools/skeleton.py
+++ b/tools/skeleton.py
@@ -128,7 +128,7 @@ def make_build(options, builder):
def update_index_html(name, description, website):
# read HTML and find a list of packages
- with open('index.html', 'rb') as f:
+ with open('docs/index.html', 'rb') as f:
index_html = f.read()
if not isinstance(index_html, str):
# Python 3
@@ -171,7 +171,7 @@ def update_index_html(name, description, website):
(_, tmp_index_html) = tempfile.mkstemp()
with open(tmp_index_html, 'wt') as f:
f.write(index_html)
- os.rename(tmp_index_html, 'index.html')
+ os.rename(tmp_index_html, 'docs/index.html')
def make_skeleton(
name,