Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1d10e1d2
Commit
1d10e1d2
authored
Apr 19, 1996
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy .exp files to mwerks project directory too.
parent
2be1b76a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
6 deletions
+27
-6
Mac/scripts/binhextree.py
Mac/scripts/binhextree.py
+27
-6
No files found.
Mac/scripts/binhextree.py
View file @
1d10e1d2
...
...
@@ -4,11 +4,6 @@
#
# Jack Jansen, CWI, August 1995.
#
# To do:
# - Also do project files (. and .), after using AppleEvents to the
# various builders to clean the projects
# - Don't hexbin (and clean) if there exists a .hqx file that is newer.
#
import
os
import
binhex
...
...
@@ -138,11 +133,37 @@ def copycwproject(path, name):
else
:
project_files
[
creator
]
=
[
fss
]
def
copycwexpfile
(
path
,
name
):
"""Copy CW export file"""
global
project_files
dstdir
=
os
.
path
.
join
(
TOP
,
CWDIR
)
if
not
os
.
path
.
exists
(
dstdir
):
print
dstdir
print
'No CW-project dir, skip'
,
name
return
dstfile
=
os
.
path
.
join
(
dstdir
,
name
)
if
dstfile
[
-
6
:]
==
'..exp'
:
dstfile
=
dstfile
[:
-
6
]
+
'.mu.exp'
# Check that we're not in the dest directory
if
dstfile
==
path
:
return
# If the destination doesn't exists or is older that the source
# we copy and remember it
if
os
.
path
.
exists
(
dstfile
)
and
\
os
.
stat
(
dstfile
)[
8
]
>
os
.
stat
(
path
)[
8
]:
print
'Not copying'
,
path
,
'- Up-to-date'
else
:
print
'Copy'
,
path
macostools
.
copy
(
path
,
dstfile
)
extensions
=
[
(
'.rsrc'
,
binhexit
),
(
'.gif'
,
binhexit
),
(
'.'
,
copycwproject
)
(
'.'
,
copycwproject
),
(
'..exp'
,
copycwexpfile
)
]
def
walker
(
arg
,
top
,
names
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment