Skip to content

Commit 228fc54

Browse files
committed
spelling: dependencies
Signed-off-by: Josh Soref <[email protected]>
1 parent 6a3372c commit 228fc54

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

rmills/bin/macosx/depends.old

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python
22

3-
r"""depends.py - find the depenancies of a library
3+
r"""depends.py - find the dependencies of a library
44
55
To use this:
66
depends.py <pathtolibrary>
@@ -37,7 +37,7 @@ def depend(libname,dependdict):
3737
result += line
3838

3939
dependdict[libname]=result
40-
cmd = 'otool -L "%s"' % libname # otool -L tells us the dependancies of this library
40+
cmd = 'otool -L "%s"' % libname # otool -L tells us the dependencies of this library
4141

4242
for line in os.popen(cmd).readlines(): # run find command
4343
sep=':'
@@ -68,7 +68,7 @@ def tsort(dict):
6868
filename='/tmp/tsortXX.txt'
6969
file=open(filename,'w')
7070
for key in dict.keys():
71-
cmd = 'otool -L "%s"' % key # otool -L tells us the dependancies of this library
71+
cmd = 'otool -L "%s"' % key # otool -L tells us the dependencies of this library
7272

7373
for line in os.popen(cmd).readlines(): # run find command
7474
mylist = string.split(line)

rmills/bin/macosx/depends.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python
22
from __future__ import print_function
33

4-
r"""depends.py - find the ordered dependancies of a library/executable (deepest first)
4+
r"""depends.py - find the ordered dependencies of a library/executable (deepest first)
55
66
To use this:
77
depends.py [options]+ <pathtolibrary/pathtoexecutable/pathotoapp>
@@ -51,7 +51,7 @@ def depend(execdir,loaddir,libname,dependdict):
5151
if os.path.isfile(libpath):
5252
if not dependdict.has_key(libpath):
5353
dependdict[libpath]=Set([]) # push now to prevent infinite loop in recursion
54-
cmd = 'otool -L "%s"' % libpath # otool -L prints library dependancies:
54+
cmd = 'otool -L "%s"' % libpath # otool -L prints library dependencies:
5555
# libpath:
5656
# <tab>dependency (metadata) ...
5757
if options.verbose or options.dryrun:
@@ -60,7 +60,7 @@ def depend(execdir,loaddir,libname,dependdict):
6060
if line[:1]=='\t': # parse <tab>dependency (metadata)
6161
dependency=line.split()[0]
6262
# print libpath,' => ',dependency
63-
# recurse to find dependancies of dependency
63+
# recurse to find dependencies of dependency
6464
dpath=depend(execdir,loaddir,dependency,dependdict)
6565
dependdict[libpath].add(dpath) # update dependdict from recursion
6666
else:
@@ -91,7 +91,7 @@ def deploy(execdir,loaddir,libname):
9191
libpath=os.path.abspath(libname)
9292

9393
if os.path.isfile(libpath):
94-
cmd = 'otool -L "%s"' % libpath # otool -L prints library dependancies:
94+
cmd = 'otool -L "%s"' % libpath # otool -L prints library dependencies:
9595
# libpath:
9696
# <tab>dependency (metadata) ...
9797
for line in os.popen(cmd).readlines(): # run cmd
@@ -180,7 +180,7 @@ def main():
180180
parser.add_option('-V', '--version' , action='store_true' , dest='version' ,help='report version' )
181181
parser.add_option('-v', '--verbose' , action='store_true' , dest='verbose' ,help='verbose output' )
182182
parser.add_option('-d', '--deploy' , action='store_true' , dest='deploy' ,help='update the bundle' )
183-
parser.add_option('-D', '--depends' , action='store_true' , dest='depends' ,help='report dependancies')
183+
parser.add_option('-D', '--depends' , action='store_true' , dest='depends' ,help='report dependencies')
184184
parser.add_option('-X', '--dryrun' , action='store_true' , dest='dryrun' ,help='do not execute commands')
185185
parser.add_option('-q', '--qt' , action='store' , dest='qt' ,help='qt directory' ,default = os.environ['HOME']+'/Qt/5.9/clang_64/lib')
186186

rmills/bin/macosx/depends2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python
22

3-
r"""depends.py - find the depenancies of a library
3+
r"""depends.py - find the dependencies of a library
44
55
To use this:
66
depends.py <pathtolibrary>
@@ -75,7 +75,7 @@ def depend(libname,dependdict,executable_path=False):
7575

7676
if not dependdict.has_key(libname):
7777
dependdict[libname]=libname # result
78-
cmd = 'otool -L "%s"' % libname # otool -L tells us the dependancies of this library
78+
cmd = 'otool -L "%s"' % libname # otool -L tells us the dependencies of this library
7979
executable_path=os.path.dirname(executable_path)
8080

8181
for line in os.popen(cmd).readlines(): # run find command
@@ -107,7 +107,7 @@ def tsort(dict):
107107
filename='/tmp/tsortXX.txt'
108108
file=open(filename,'w')
109109
for key in dict.keys():
110-
cmd = 'otool -L "%s"' % key # otool -L tells us the dependancies of this library
110+
cmd = 'otool -L "%s"' % key # otool -L tells us the dependencies of this library
111111

112112
for line in os.popen(cmd).readlines(): # run find command
113113
mylist = string.split(line)

0 commit comments

Comments
 (0)