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
30e53c0c
Kaydet (Commit)
30e53c0c
authored
Agu 14, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Print a list of files under CVS.
üst
9189bdab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
cvsfiles.py
Tools/scripts/cvsfiles.py
+42
-0
No files found.
Tools/scripts/cvsfiles.py
0 → 100755
Dosyayı görüntüle @
30e53c0c
#! /usr/bin/env python
"""Create a list of files that are mentioned in CVS directories."""
import
os
import
sys
import
string
def
main
():
args
=
sys
.
argv
[
1
:]
if
args
:
for
arg
in
args
:
process
(
arg
)
else
:
process
(
"."
)
def
process
(
dir
):
cvsdir
=
0
subdirs
=
[]
files
=
[]
names
=
os
.
listdir
(
dir
)
for
name
in
names
:
fullname
=
os
.
path
.
join
(
dir
,
name
)
if
name
==
"CVS"
:
cvsdir
=
fullname
else
:
if
os
.
path
.
isdir
(
fullname
):
subdirs
.
append
(
fullname
)
else
:
files
.
append
(
fullname
)
if
cvsdir
:
entries
=
os
.
path
.
join
(
cvsdir
,
"Entries"
)
for
e
in
open
(
entries
)
.
readlines
():
words
=
string
.
split
(
e
,
'/'
)
if
words
[
0
]
==
''
and
words
[
1
:]:
name
=
words
[
1
]
print
os
.
path
.
join
(
dir
,
name
)
for
sub
in
subdirs
:
process
(
sub
)
main
()
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