aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2015-04-11 03:52:36 +0800
committerTing-Wei Lan <lantw44@gmail.com>2015-04-11 03:52:36 +0800
commit7c7a935af737461e9788e2d6379a9d870d1f79f9 (patch)
tree9ef6ebccc6d4127a17980a97ba44744b1511fc22 /bash_include
parentf3e66829788b671e1ebd86892c5094ed18d4f9ae (diff)
downloadconfigfile-7c7a935af737461e9788e2d6379a9d870d1f79f9.tar
configfile-7c7a935af737461e9788e2d6379a9d870d1f79f9.tar.gz
configfile-7c7a935af737461e9788e2d6379a9d870d1f79f9.tar.bz2
configfile-7c7a935af737461e9788e2d6379a9d870d1f79f9.tar.lz
configfile-7c7a935af737461e9788e2d6379a9d870d1f79f9.tar.xz
configfile-7c7a935af737461e9788e2d6379a9d870d1f79f9.tar.zst
configfile-7c7a935af737461e9788e2d6379a9d870d1f79f9.zip
bash_include: 加入 windows_exe_copy -p 只顯示 DLL 路徑bash_include-20150411
Diffstat (limited to 'bash_include')
-rw-r--r--bash_include8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash_include b/bash_include
index 4ae4d12..87998f9 100644
--- a/bash_include
+++ b/bash_include
@@ -1207,6 +1207,10 @@ function windows_exe_copy ()
dry_run="true"
verbose="true"
shift
+ elif [ "$1" = "-p" ]; then
+ dry_run="true"
+ verbose="false"
+ shift
fi
local exefile="$1"
@@ -1226,6 +1230,8 @@ function windows_exe_copy ()
echo "Copying ${windows_exe_needed_dlls[$i]} ..."
mkdir -p "$destdir"
safe_cp "${windows_exe_needed_dlls[$i]}" "$destdir"
+ else
+ echo "${windows_exe_needed_dlls[$i]}"
fi
done
@@ -2025,7 +2031,7 @@ function help_function ()
<<< Group: Windows Executable Helpers >>>
windows_exe_get_deps dll_or_exe
- windows_exe_copy [-n] dll_or_exe destdir libdir ...
+ windows_exe_copy [-n|-p] dll_or_exe destdir libdir ...
x windows_dll_is_builtin dll_or_exe
x windows_exe_find_dlls