summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-23 18:53:53 +0800
committerGitHub <[email protected]>2024-11-23 18:53:53 +0800
commit8913dcb81aedf7621fa7323a4f047792b0ba31c6 (patch)
treeb07de06a2cca77d3f8070d610908914d11ca3e4d
parentbfc2995e6a9ead6a1e6f0c77c2753bda7fde2be8 (diff)
parenteca5731863798e1005d2bafb254fe9c41d3002aa (diff)
Merge pull request #5875 from jinke18/dev-1123-1
maybe a bug: batchcmds
-rw-r--r--xmake/modules/private/utils/batchcmds.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua
index c8e0c51a8..bd3350954 100644
--- a/xmake/modules/private/utils/batchcmds.lua
+++ b/xmake/modules/private/utils/batchcmds.lua
@@ -156,49 +156,49 @@ end
-- run command: os.cp
function _runcmd_cp(cmd, opt)
if not opt.dryrun then
- os.cp(cmd.srcpath, cmd.dstpath, opt.opt)
+ os.cp(cmd.srcpath, cmd.dstpath, cmd.opt)
end
end
-- run command: os.mv
function _runcmd_mv(cmd, opt)
if not opt.dryrun then
- os.mv(cmd.srcpath, cmd.dstpath, opt.opt)
+ os.mv(cmd.srcpath, cmd.dstpath, cmd.opt)
end
end
-- run command: os.ln
function _runcmd_ln(cmd, opt)
if not opt.dryrun then
- os.ln(cmd.srcpath, cmd.dstpath, opt.opt)
+ os.ln(cmd.srcpath, cmd.dstpath, cmd.opt)
end
end
-- run command: clean rpath
function _runcmd_clean_rpath(cmd, opt)
if not opt.dryrun then
- rpath_utils.clean(cmd.filepath, opt.opt)
+ rpath_utils.clean(cmd.filepath, cmd.opt)
end
end
-- run command: insert rpath
function _runcmd_insert_rpath(cmd, opt)
if not opt.dryrun then
- rpath_utils.insert(cmd.filepath, cmd.rpath, opt.opt)
+ rpath_utils.insert(cmd.filepath, cmd.rpath, cmd.opt)
end
end
-- run command: remove rpath
function _runcmd_remove_rpath(cmd, opt)
if not opt.dryrun then
- rpath_utils.remove(cmd.filepath, cmd.rpath, opt.opt)
+ rpath_utils.remove(cmd.filepath, cmd.rpath, cmd.opt)
end
end
-- run command: change rpath
function _runcmd_change_rpath(cmd, opt)
if not opt.dryrun then
- rpath_utils.change(cmd.filepath, cmd.rpath_old, cmd.rpath_new, opt.opt)
+ rpath_utils.change(cmd.filepath, cmd.rpath_old, cmd.rpath_new, cmd.opt)
end
end