diff options
| author | ruki <[email protected]> | 2017-09-01 16:08:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-01 16:08:18 +0800 |
| commit | 3b5f35ed5c5918ff883c9c8d9481fbe25fff389f (patch) | |
| tree | d76becac09d472082ba695576726c4f53bc75b5f | |
| parent | 4c846e018afd9a71694bf3aa3a3ad335149d9fb0 (diff) | |
modify uninstall main menu
| -rw-r--r-- | xmake/actions/install/xmake.lua | 14 | ||||
| -rw-r--r-- | xmake/actions/uninstall/xmake.lua | 15 |
2 files changed, 18 insertions, 11 deletions
diff --git a/xmake/actions/install/xmake.lua b/xmake/actions/install/xmake.lua index e3bd69312..e92e5f1c2 100644 --- a/xmake/actions/install/xmake.lua +++ b/xmake/actions/install/xmake.lua @@ -48,16 +48,16 @@ task("install") {'o', "installdir", "kv", nil, "Set the install directory.", ".e.g", " $ xmake install -o /usr/local", - "or $ export DESTDIR=/usr/local; xmake install", - "or $ export INSTALLDIR=/usr/local; xmake install" } - , {'p', "prefix", "kv", nil, "Set the prefix directory.", + "or $ DESTDIR=/usr/local xmake install", + "or $ INSTALLDIR=/usr/local xmake install" } + , {'p', "prefix", "kv", nil, "Set the prefix directory.", ".e.g", " $ xmake install --prefix=local", - "or $ export PREFIX=local; xmake install" } - , {'a', "all", "k", nil, "Install all targets." } + "or $ PREFIX=local xmake install" } + , {'a', "all", "k", nil, "Install all targets." } - , { } - , {nil, "target", "v", nil, "Install the given target." } + , { } + , {nil, "target", "v", nil, "Install the given target." } } } diff --git a/xmake/actions/uninstall/xmake.lua b/xmake/actions/uninstall/xmake.lua index 400e7ffa5..68deba056 100644 --- a/xmake/actions/uninstall/xmake.lua +++ b/xmake/actions/uninstall/xmake.lua @@ -45,10 +45,17 @@ task("uninstall") -- options , options = { - {nil, "installdir", "kv", nil, "Set the install directory." } - - , {} - , {nil, "target", "v", nil, "Uninstall the given target." } + {nil, "installdir", "kv", nil, "Set the install directory.", + ".e.g", + " $ xmake uninstall -o /usr/local", + "or $ DESTDIR=/usr/local xmake uninstall", + "or $ INSTALLDIR=/usr/local xmake uninstall" } + , {'p', "prefix", "kv", nil, "Set the prefix directory.", + ".e.g", + " $ xmake uninstall --prefix=local", + "or $ PREFIX=local xmake uninstall" } + , { } + , {nil, "target", "v", nil, "Uninstall the given target." } } } |
