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
ebf6d5de
Kaydet (Commit)
ebf6d5de
authored
Eyl 18, 2011
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add help
üst
9617a776
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
2 deletions
+44
-2
install-gdb-printers
solenv/bin/install-gdb-printers
+44
-2
No files found.
solenv/bin/install-gdb-printers
Dosyayı görüntüle @
ebf6d5de
...
...
@@ -35,6 +35,47 @@ die() {
exit
1
}
usage
()
{
cat
<<
EOT
Install gdb pretty printers and autoloaders for them.
Usage:
install-gdb-printers [ -a dir ] [ -i dir ] [ -p dir ] [ -c ] [ -L ]
install-gdb-printers -h
Options:
-a dir The dir where autoloaders will be placed. Defaults to whatever -i
is.
-c Create the autoloader's dir if it does not exist. This option only
makes sense if both -a and -i are used.
-f Do not create subdirs in the autoloader's dir. This option is only
used during build.
-h Show this help text.
-i dir The dir where libreoffice is installed. Defaults to whatever -a is.
-L Create symlinks to autoloaders already present in the build tree.
Only makes sense for dev. installation.
-p dir The dir where pretty printers are placed.
Env. variables:
DESTDIR If set, it is prepended to all dir arguments.
Examples:
1) Make pretty printers usable in your dev. installation (this is
already done as part of make dev-install, but it would not have been
run if smoketest failed):
install-gdb-printers -L
2) Install pretty printers into /usr/share/libreoffice/gdb, with
autoloaders in /usr/share/gdb/auto-load (run
"info gdb 'Extending GDB' Python Auto-loading" to learn more) and
installation in /usr/lib64/libreoffice (this is what Fedora does):
install-gdb-printers -a /usr/share/gdb/auto-load/usr/lib64/libreoffice -c \\
-i /usr/lib64/libreoffice -p /usr/share/libreoffice/gdb
EOT
}
make_autoload
()
{
local dir
=
"
${
DESTDIR
}${
autoloaddir
}
"
${
flat
}
||
dir
=
"
${
dir
}
/
$2
"
...
...
@@ -81,12 +122,13 @@ link=false
# are in the same dir.
flat
=
false
# b de g
h
jklmno qrstuvwxyzABCDEFGHIJK MNOPQRSTUVWXYZ0123456789
while
getopts
:a:cfi:p:L opt
;
do
# b de g
jklmno qrstuvwxyzABCDEFGHIJK MNOPQRSTUVWXYZ0123456789
while
getopts
:a:cf
h
i:p:L opt
;
do
case
${
opt
}
in
a
)
autoloaddir
=
"
${
OPTARG
}
"
;;
c
)
create
=
true
;;
f
)
flat
=
true
;;
h
)
usage
;
exit
;;
i
)
installdir
=
"
${
OPTARG
}
"
;;
p
)
pythondir
=
"
${
OPTARG
}
"
;;
L
)
link
=
true
;;
...
...
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