Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
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ç
LibreOffice
core
Commits
2e9ec0a8
Kaydet (Commit)
2e9ec0a8
authored
Ock 01, 2013
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify processing of python.sh
Change-Id: I583407233fad1f7aaccc137642e5f134c3ba2874
üst
085e0adf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
33 deletions
+36
-33
CustomTarget_python_shell.mk
pyuno/CustomTarget_python_shell.mk
+15
-10
mac.sh
pyuno/zipcore/mac.sh
+9
-0
nonmac.sh
pyuno/zipcore/nonmac.sh
+12
-0
python.sh
pyuno/zipcore/python.sh
+0
-23
No files found.
pyuno/CustomTarget_python_shell.mk
Dosyayı görüntüle @
2e9ec0a8
...
...
@@ -26,23 +26,28 @@
$(eval $(call gb_CustomTarget_CustomTarget,pyuno/python_shell))
$(call gb_CustomTarget_get_target,pyuno/python_shell) : \
$(call gb_CustomTarget_get_workdir,pyuno/python_shell)/python.sh
$(eval $(call gb_CustomTarget_register_targets,pyuno/python_shell,\
os.sh \
python.sh \
))
ifeq ($(OS),MACOSX)
pyuno_PYTHON_SHELL_VERSION:=$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)
pyuno_PYTHON_SHELL_STRIPRULE:=-e '/^NONMACSECTION/,/^MACSECTION/d'
else
pyuno_PYTHON_SHELL_VERSION:=$(PYTHON_VERSION)
pyuno_PYTHON_SHELL_STRIPRULE:=-e '/^NONMACSECTION/d' -e '/^MACSECTION/,$$d'
endif
$(call gb_CustomTarget_get_workdir,pyuno/python_shell)/python.sh : $(SRCDIR)/pyuno/zipcore/python.sh | \
$(call gb_CustomTarget_get_workdir,pyuno/python_shell)/.dir
$(call gb_CustomTarget_get_workdir,pyuno/python_shell)/python.sh : \
$(SRCDIR)/pyuno/zipcore/python.sh \
$(call gb_CustomTarget_get_workdir,pyuno/python_shell)/os.sh
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CAT,1)
cat $^ > $@ && chmod +x $@
$(call gb_CustomTarget_get_workdir,pyuno/python_shell)/os.sh : \
$(SRCDIR)/pyuno/zipcore/$(if $(filter MACOSX,$(OS)),mac,nonmac).sh
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1)
sed -e "s/%%PYVERSION%%/$(pyuno_PYTHON_SHELL_VERSION)/g" -e \
"s/%%OOO_LIBRARY_PATH_VAR%%/$(gb_Helper_LIBRARY_PATH_VAR)/g" \
$(pyuno_PYTHON_SHELL_STRIPRULE) < $? > $@
chmod +x $@
sed -e "s/%%PYVERSION%%/$(pyuno_PYTHON_SHELL_VERSION)/g" \
-e "s/%%OOO_LIBRARY_PATH_VAR%%/$(gb_Helper_LIBRARY_PATH_VAR)/g" \
$< > $@
# vim: set noet sw=4 ts=4:
pyuno/zipcore/mac.sh
0 → 100644
Dosyayı görüntüle @
2e9ec0a8
PYTHONHOME
=
$sd_prog
/LibreOfficePython.framework
export
PYTHONHOME
pybasislibdir
=
$PYTHONHOME
/Versions/%%PYVERSION%%/lib/python%%PYVERSION%%
PYTHONPATH
=
$sd_prog
:
$pybasislibdir
:
$pybasislibdir
/lib-dynload:
$pybasislibdir
/lib-tk:
$pybasislibdir
/site-packages
${
PYTHONPATH
+
:
$PYTHONPATH
}
export
PYTHONPATH
# execute binary
exec
"
$PYTHONHOME
/Versions/%%PYVERSION%%/Resources/Python.app/Contents/MacOS/LibreOfficePython"
"
$@
"
pyuno/zipcore/nonmac.sh
0 → 100644
Dosyayı görüntüle @
2e9ec0a8
# Set %%OOO_LIBRARY_PATH_VAR%% so that python.bin finds libpython2.6.so (this
# can go once python.bin contains a proper RPATH):
%%OOO_LIBRARY_PATH_VAR%%
=
$sd_prog
${
%%OOO_LIBRARY_PATH_VAR%%
:+:
$%
%OOO_LIBRARY_PATH_VAR%%
}
export
%%OOO_LIBRARY_PATH_VAR%%
PYTHONPATH
=
$sd_prog
:
$sd_prog
/python-core-%%PYVERSION%%/lib:
$sd_prog
/python-core-%%PYVERSION%%/lib/lib-dynload:
$sd_prog
/python-core-%%PYVERSION%%/lib/lib-tk:
$sd_prog
/python-core-%%PYVERSION%%/lib/site-packages
${
PYTHONPATH
+
:
$PYTHONPATH
}
export
PYTHONPATH
PYTHONHOME
=
$sd_prog
/python-core-%%PYVERSION%%
export
PYTHONHOME
# execute binary
exec
"
$sd_prog
/python.bin"
"
$@
"
pyuno/zipcore/python.sh
Dosyayı görüntüle @
2e9ec0a8
...
...
@@ -43,26 +43,3 @@ export UNO_PATH
:
${
URE_BOOTSTRAP
=vnd.sun.star.pathname
:
$sd_prog
/fundamentalrc
}
export
URE_BOOTSTRAP
NONMACSECTION
# Set %%OOO_LIBRARY_PATH_VAR%% so that python.bin finds libpython2.6.so (this
# can go once python.bin contains a proper RPATH):
%%OOO_LIBRARY_PATH_VAR%%
=
$sd_prog
${
%%OOO_LIBRARY_PATH_VAR%%
:+:
$%
%OOO_LIBRARY_PATH_VAR%%
}
export
%%OOO_LIBRARY_PATH_VAR%%
PYTHONPATH
=
$sd_prog
:
$sd_prog
/python-core-%%PYVERSION%%/lib:
$sd_prog
/python-core-%%PYVERSION%%/lib/lib-dynload:
$sd_prog
/python-core-%%PYVERSION%%/lib/lib-tk:
$sd_prog
/python-core-%%PYVERSION%%/lib/site-packages
${
PYTHONPATH
+
:
$PYTHONPATH
}
export
PYTHONPATH
PYTHONHOME
=
$sd_prog
/python-core-%%PYVERSION%%
export
PYTHONHOME
# execute binary
exec
"
$sd_prog
/python.bin"
"
$@
"
MACSECTION
PYTHONHOME
=
$sd_prog
/LibreOfficePython.framework
export
PYTHONHOME
pybasislibdir
=
$PYTHONHOME
/Versions/%%PYVERSION%%/lib/python%%PYVERSION%%
PYTHONPATH
=
$sd_prog
:
$pybasislibdir
:
$pybasislibdir
/lib-dynload:
$pybasislibdir
/lib-tk:
$pybasislibdir
/site-packages
${
PYTHONPATH
+
:
$PYTHONPATH
}
export
PYTHONPATH
# execute binary
exec
"
$PYTHONHOME
/Versions/%%PYVERSION%%/Resources/Python.app/Contents/MacOS/LibreOfficePython"
"
$@
"
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