Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
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)
1
Konular (issue)
1
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ç
SulinOS
inary
Commits
a82bb670
Kaydet (Commit)
a82bb670
authored
Tem 08, 2005
tarafından
S.Çağlar Onur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bir iki ufak düzenleme
üst
59ee1c87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
pisitools.py
pisi/actionsapi/pisitools.py
+13
-12
No files found.
pisi/actionsapi/pisitools.py
Dosyayı görüntüle @
a82bb670
...
...
@@ -40,7 +40,7 @@ def dosed(filename, searchPattern, replacePattern = ''):
line
=
re
.
sub
(
searchPattern
,
replacePattern
,
line
)
sys
.
stdout
.
write
(
line
)
def
dosbin
(
filename
,
destination
=
glb
.
dirs
.
sbin
):
def
dosbin
(
filename
,
destination
=
glb
.
dirs
.
sbin
):
env
=
glb
.
env
makedirs
(
os
.
path
.
join
(
env
.
install_dir
,
destination
))
...
...
@@ -51,28 +51,29 @@ def dosbin(filename, destination=glb.dirs.sbin):
destination
,
os
.
path
.
basename
(
filename
)))
def
doman
(
filename
):
def
doman
(
*
filenameList
):
env
=
glb
.
env
dirs
=
glb
.
dirs
man
,
postfix
=
filename
.
split
(
'.'
)
destDir
=
os
.
path
.
join
(
env
.
install_dir
,
dirs
.
man
,
"man"
+
postfix
)
for
filename
in
filenameList
:
man
,
postfix
=
filename
.
split
(
'.'
)
destDir
=
os
.
path
.
join
(
env
.
install_dir
,
dirs
.
man
,
"man"
+
postfix
)
makedirs
(
destDir
)
makedirs
(
destDir
)
gzfile
=
gzip
.
GzipFile
(
filename
+
'.gz'
,
'w'
,
9
)
gzfile
.
writelines
(
file
(
filename
)
.
xreadlines
())
gzfile
.
close
()
gzfile
=
gzip
.
GzipFile
(
filename
+
'.gz'
,
'w'
,
9
)
gzfile
.
writelines
(
file
(
filename
)
.
xreadlines
())
gzfile
.
close
()
if
os
.
access
(
filename
,
os
.
F_OK
):
copy_file
(
filename
+
'.gz'
,
os
.
path
.
join
(
destDir
,
if
os
.
access
(
filename
,
os
.
F_OK
):
copy_file
(
filename
+
'.gz'
,
os
.
path
.
join
(
destDir
,
os
.
path
.
basename
(
filename
)))
def
domove
(
source
,
destination
):
env
=
glb
.
env
makedirs
(
env
.
install_dir
+
'/'
+
os
.
path
.
dirname
(
destination
))
shutil
.
move
(
env
.
install_dir
+
'/'
+
source
,
env
.
install_dir
+
'/'
+
destination
)
def
dosym
(
source
,
destination
):
...
...
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