summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/install.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-07-14 10:30:00 +0800
committerruki <[email protected]>2015-07-14 10:30:00 +0800
commitb08c998ba48775ed029fea31fed7963944b03dae (patch)
treeefdcf8ebea307f01b7cfe10f67c4771e6a2e0e35 /xmake/scripts/base/install.lua
parent441be85afd1b39ded4584d502c434c17d27ad93e (diff)
add uninstall for macosx and linux
Diffstat (limited to 'xmake/scripts/base/install.lua')
-rw-r--r--xmake/scripts/base/install.lua18
1 files changed, 16 insertions, 2 deletions
diff --git a/xmake/scripts/base/install.lua b/xmake/scripts/base/install.lua
index 4f4eef18f..9fc41a14a 100644
--- a/xmake/scripts/base/install.lua
+++ b/xmake/scripts/base/install.lua
@@ -103,6 +103,13 @@ function install._done(target)
return true
end
+-- get the configure file
+function install._file()
+
+ -- get it
+ return config.directory() .. "/install.conf"
+end
+
-- done install from the configure
function install.done(configs)
@@ -121,8 +128,15 @@ function install.done(configs)
end
- -- ok
- return true
+ -- save to the configure file
+ return io.save(install._file(), configs)
+end
+
+-- load the install configure
+function install.load()
+
+ -- load it
+ return io.load(install._file())
end
-- return module: install