DLL dependency listing utility for MinGW applications
リビジョン | 6c62748f2e145a34961477b26f1c37b71af34906 (tree) |
---|---|
日時 | 2020-09-07 02:38:10 |
作者 | Keith Marshall <keith@user...> |
コミッター | Keith Marshall |
Support persistent user-specific run-time initialization.
* mingw32-ldd.sh (rcinit): New function; it provides fall-backs...
(SYSTEM_DLLPATH, PROGRAM_FILES): ...for these shell variables, after
reading preferred settings from $HOME/.mingw32rc; use it.
@@ -6,10 +6,10 @@ | ||
6 | 6 | # executable files and/or dynamic link libraries. |
7 | 7 | # |
8 | 8 | # |
9 | -# $Id$ | |
9 | +# $Id: mingw32-ldd.sh,v bf042a552a35 2020/09/06 17:38:10 keith $ | |
10 | 10 | # |
11 | 11 | # Written by Keith Marshall <keith@users.osdn.me> |
12 | -# Copyright (C) 2016, 2017, 2019, MinGW.org Project | |
12 | +# Copyright (C) 2016, 2017, 2019, 2020, MinGW.org Project | |
13 | 13 | # |
14 | 14 | # |
15 | 15 | # Permission is hereby granted, free of charge, to any person obtaining a |
@@ -35,8 +35,15 @@ | ||
35 | 35 | CMD=`basename $0` |
36 | 36 | usage(){ echo >&2 "Usage: $CMD {EXENAME | DLLNAME} ..."; STATUS=2; echo; } |
37 | 37 | # |
38 | - PROGRAM_FILES="$SYSTEM_DRIVE/program files" | |
39 | - SYSTEM_DLLPATH="$SYSTEM_DRIVE/windows/system32" | |
38 | +# Run-time initialization allows preferences for shell variables, | |
39 | +# such as SYSTEM_DRIVE, SYSTEM_DLLPATH, and PROGRAM_FILES, to be | |
40 | +# predefined in the user's $HOME/.mingw32rc | |
41 | +# | |
42 | + rcinit() { test -r "$1" && . "$1" | |
43 | + SYSTEM_DLLPATH=${SYSTEM_DLLPATH-"$SYSTEM_DRIVE/windows/system32"} | |
44 | + PROGRAM_FILES=${PROGRAM_FILES-"$SYSTEM_DRIVE/program files"} | |
45 | + } | |
46 | + rcinit "${HOME-`cd;pwd`}/.mingw32rc" | |
40 | 47 | EXEPATH=`dirname "$1"` STATUS=0 |
41 | 48 | # |
42 | 49 | set_dllpath(){ |
@@ -142,4 +149,4 @@ | ||
142 | 149 | while test $# -gt 0; do show_depends "$1"; shift; test $# -gt 0 && echo; done |
143 | 150 | exit $STATUS |
144 | 151 | # |
145 | -# $RCSfile$: end of file | |
152 | +# $RCSfile: mingw32-ldd.sh,v $: end of file |