• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

DLL dependency listing utility for MinGW applications


Commit MetaInfo

修訂6c62748f2e145a34961477b26f1c37b71af34906 (tree)
時間2020-09-07 02:38:10
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

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.

Change Summary

差異

--- a/mingw32-ldd.sh
+++ b/mingw32-ldd.sh
@@ -6,10 +6,10 @@
66 # executable files and/or dynamic link libraries.
77 #
88 #
9-# $Id$
9+# $Id: mingw32-ldd.sh,v bf042a552a35 2020/09/06 17:38:10 keith $
1010 #
1111 # 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
1313 #
1414 #
1515 # Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,8 +35,15 @@
3535 CMD=`basename $0`
3636 usage(){ echo >&2 "Usage: $CMD {EXENAME | DLLNAME} ..."; STATUS=2; echo; }
3737 #
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"
4047 EXEPATH=`dirname "$1"` STATUS=0
4148 #
4249 set_dllpath(){
@@ -142,4 +149,4 @@
142149 while test $# -gt 0; do show_depends "$1"; shift; test $# -gt 0 && echo; done
143150 exit $STATUS
144151 #
145-# $RCSfile$: end of file
152+# $RCSfile: mingw32-ldd.sh,v $: end of file