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
b80b6e1e
Kaydet (Commit)
b80b6e1e
authored
Eki 08, 2006
tarafından
Ronald Oussoren
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
MacOSX: add more logic to recognize the correct startup file to patch to the
shell profile patching post-install script.
üst
d6272a3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
postflight.patch-profile
Mac/BuildScript/scripts/postflight.patch-profile
+14
-7
No files found.
Mac/BuildScript/scripts/postflight.patch-profile
Dosyayı görüntüle @
b80b6e1e
...
@@ -47,22 +47,29 @@ done
...
@@ -47,22 +47,29 @@ done
echo
"
${
PYTHON_ROOT
}
/bin is not on your PATH or at least not early enough"
echo
"
${
PYTHON_ROOT
}
/bin is not on your PATH or at least not early enough"
case
"
${
BSH
}
"
in
case
"
${
BSH
}
"
in
*
csh
)
*
csh
)
if
[
-f
"
${
HOME
}
/.tcshrc"
]
;
then
RC
=
"
${
HOME
}
/.tcshrc"
else
RC
=
"
${
HOME
}
/.cshrc"
fi
# Create backup copy before patching
# Create backup copy before patching
if
[
-f
"
${
HOME
}
/.cshrc
"
]
;
then
if
[
-f
"
${
RC
}
"
]
;
then
cp
-fp
"
${
HOME
}
/.cshrc"
"
${
HOME
}
/.cshrc
.pysave"
cp
-fp
"
${
RC
}
"
"
${
RC
}
.pysave"
fi
fi
echo
""
>>
"
${
HOME
}
/.cshrc
"
echo
""
>>
"
${
RC
}
"
echo
"# Setting PATH for MacPython
${
PYVER
}
"
>>
"
${
HOME
}
/.cshrc
"
echo
"# Setting PATH for MacPython
${
PYVER
}
"
>>
"
${
RC
}
"
echo
"# The orginal version is saved in .cshrc.pysave"
>>
"
${
HOME
}
/.cshrc
"
echo
"# The orginal version is saved in .cshrc.pysave"
>>
"
${
RC
}
"
echo
"set path=(
${
PYTHON_ROOT
}
/bin "
'$path'
")"
>>
"
${
HOME
}
/.cshrc
"
echo
"set path=(
${
PYTHON_ROOT
}
/bin "
'$path'
")"
>>
"
${
RC
}
"
if
[
`
id
-ur
`
=
0
]
;
then
if
[
`
id
-ur
`
=
0
]
;
then
chown
"
${
USER
}
"
"
${
HOME
}
/.cshrc
"
chown
"
${
USER
}
"
"
${
RC
}
"
fi
fi
exit
0
exit
0
;;
;;
bash
)
bash
)
if
[
-e
"
${
HOME
}
/.bash_profile"
]
;
then
if
[
-e
"
${
HOME
}
/.bash_profile"
]
;
then
PR
=
"
${
HOME
}
/.bash_profile"
PR
=
"
${
HOME
}
/.bash_profile"
elif
[
-e
"
${
HOME
}
/.bash_login"
]
;
then
PR
=
"
${
HOME
}
/.bash_login"
elif
[
-e
"
${
HOME
}
/.profile"
]
;
then
elif
[
-e
"
${
HOME
}
/.profile"
]
;
then
PR
=
"
${
HOME
}
/.profile"
PR
=
"
${
HOME
}
/.profile"
else
else
...
...
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