Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
c42c0b76
Kaydet (Commit)
c42c0b76
authored
Eki 23, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Only copy project files from build* and plugins to the projects
folder, leave other projects where they are
üst
d2034c1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
17 deletions
+33
-17
binhextree.py
Mac/scripts/binhextree.py
+33
-17
No files found.
Mac/scripts/binhextree.py
Dosyayı görüntüle @
c42c0b76
...
@@ -23,6 +23,8 @@ TOP=''
...
@@ -23,6 +23,8 @@ TOP=''
# Where to put CW projects, relative to TOP
# Where to put CW projects, relative to TOP
CWDIR
=
':Mac:mwerks:projects'
CWDIR
=
':Mac:mwerks:projects'
# From which folders to put projects there
CWDIRDIRS
=
[
'build.macppc.stand'
,
'build.macppc.shared'
,
'build.mac68k.stand'
,
'build.mac68k.shared'
,
'PlugIns'
]
# Helper routines
# Helper routines
def
binhexit
(
path
,
name
):
def
binhexit
(
path
,
name
):
...
@@ -80,13 +82,15 @@ def hexbincwprojects(creator):
...
@@ -80,13 +82,15 @@ def hexbincwprojects(creator):
if
srcfile
[
-
1
]
==
''
:
if
srcfile
[
-
1
]
==
''
:
dstfile
=
srcfile
[:
-
1
]
+
'mu.hqx'
dstfile
=
srcfile
[:
-
1
]
+
'mu.hqx'
elif
srcfile
[
-
3
]
==
'.mu'
:
dstfile
=
srcfile
+
'.hqx'
elif
ord
(
srcfile
[
-
1
])
>=
128
:
elif
ord
(
srcfile
[
-
1
])
>=
128
:
dstfile
=
srcfile
[:
-
1
]
+
`ord(srcfile[-1])`
+
'.hqx'
dstfile
=
srcfile
[:
-
1
]
+
`ord(srcfile[-1])`
+
'.hqx'
else
:
else
:
dstfile
=
srcfile
+
'.hqx'
dstfile
=
srcfile
+
'.hqx'
if
os
.
path
.
exists
(
dstfile
)
and
\
if
os
.
path
.
exists
(
dstfile
)
and
\
os
.
stat
(
dstfile
)[
8
]
>
os
.
stat
(
srcfile
)[
8
]:
os
.
stat
(
dstfile
)[
8
]
>
=
os
.
stat
(
srcfile
)[
8
]:
print
'Skip'
,
dstfile
,
'- Up-to-date'
print
'Skip'
,
dstfile
,
'- Up-to-date'
continue
continue
print
'Compacting'
,
dstfile
print
'Compacting'
,
dstfile
...
@@ -104,20 +108,26 @@ def copycwproject(path, name):
...
@@ -104,20 +108,26 @@ def copycwproject(path, name):
global
project_files
global
project_files
dstdir
=
os
.
path
.
join
(
TOP
,
CWDIR
)
dstdir
=
os
.
path
.
join
(
TOP
,
CWDIR
)
if
not
os
.
path
.
exists
(
dstdir
):
if
path
[:
len
(
dstdir
)]
==
dstdir
:
print
dstdir
print
'No CW-project dir, skip'
,
name
return
dstfile
=
os
.
path
.
join
(
dstdir
,
name
)
# Check that we're not in the dest directory
if
dstfile
==
path
:
return
return
srcdir
=
os
.
path
.
split
(
path
)[
0
]
srcdir
=
os
.
path
.
split
(
srcdir
)[
1
]
if
srcdir
in
CWDIRDIRS
:
if
not
os
.
path
.
exists
(
dstdir
):
print
dstdir
print
'No CW-project dir, skip'
,
name
return
dstfile
=
os
.
path
.
join
(
dstdir
,
name
)
else
:
if
path
[
-
2
:]
!=
'.'
:
return
dstfile
=
path
[:
-
2
]
+
'.mu'
# If the destination doesn't exists or is older that the source
# If the destination doesn't exists or is older that the source
# we copy and remember it
# we copy and remember it
if
os
.
path
.
exists
(
dstfile
)
and
\
if
os
.
path
.
exists
(
dstfile
)
and
\
os
.
stat
(
dstfile
)[
8
]
>
os
.
stat
(
path
)[
8
]:
os
.
stat
(
dstfile
)[
8
]
>
=
os
.
stat
(
path
)[
8
]:
print
'Not copying'
,
path
,
'- Up-to-date'
print
'Not copying'
,
path
,
'- Up-to-date'
else
:
else
:
print
'Copy'
,
path
print
'Copy'
,
path
...
@@ -136,22 +146,28 @@ def copycwexpfile(path, name):
...
@@ -136,22 +146,28 @@ def copycwexpfile(path, name):
global
project_files
global
project_files
dstdir
=
os
.
path
.
join
(
TOP
,
CWDIR
)
dstdir
=
os
.
path
.
join
(
TOP
,
CWDIR
)
if
not
os
.
path
.
exists
(
dstdir
):
if
path
[:
len
(
dstdir
)]
==
dstdir
:
print
dstdir
print
'No CW-project dir, skip'
,
name
return
return
dstfile
=
os
.
path
.
join
(
dstdir
,
name
)
srcdir
=
os
.
path
.
split
(
path
)[
0
]
srcdir
=
os
.
path
.
split
(
srcdir
)[
1
]
if
srcdir
in
CWDIRDIRS
:
if
not
os
.
path
.
exists
(
dstdir
):
print
dstdir
print
'No CW-project dir, skip'
,
name
return
dstfile
=
os
.
path
.
join
(
dstdir
,
name
)
else
:
if
path
[
-
6
:]
!=
'..exp'
:
return
dstfile
=
path
[:
-
6
]
+
'.mu.exp'
if
dstfile
[
-
6
:]
==
'..exp'
:
if
dstfile
[
-
6
:]
==
'..exp'
:
dstfile
=
dstfile
[:
-
6
]
+
'.mu.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
# If the destination doesn't exists or is older that the source
# we copy and remember it
# we copy and remember it
if
os
.
path
.
exists
(
dstfile
)
and
\
if
os
.
path
.
exists
(
dstfile
)
and
\
os
.
stat
(
dstfile
)[
8
]
>
os
.
stat
(
path
)[
8
]:
os
.
stat
(
dstfile
)[
8
]
>
=
os
.
stat
(
path
)[
8
]:
print
'Not copying'
,
path
,
'- Up-to-date'
print
'Not copying'
,
path
,
'- Up-to-date'
else
:
else
:
print
'Copy'
,
path
print
'Copy'
,
path
...
...
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