gluon-legacy: convert the remaining legacy infrastructure to a simple invariant script

This commit is contained in:
Matthias Schiffer 2015-01-23 05:51:13 +01:00
parent 0371b443d3
commit 20187005d4
3 changed files with 11 additions and 21 deletions

View File

@ -1,13 +0,0 @@
#!/usr/bin/lua
local site = require 'gluon.site_config'
local ret = 1
for _, file in ipairs(site.legacy.version_files) do
if os.remove(file) then
ret = 0
end
end
os.exit(ret)

View File

@ -1,8 +0,0 @@
#!/usr/bin/lua
local site = require 'gluon.site_config'
for _, file in ipairs(site.legacy.old_files) do
os.remove(file)
end

View File

@ -0,0 +1,11 @@
#!/usr/bin/lua
local site = require 'gluon.site_config'
local sysconfig = require 'gluon.sysconfig'
if sysconfig.gluon_version == 'legacy' then
for _, file in ipairs(site.legacy.old_files) do
os.remove(file)
end
end