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
dd771be1
Kaydet (Commit)
dd771be1
authored
May 30, 2011
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
initial attempt to avoid ugly errors with missing pkgconfig etc.
üst
313f54da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
autogen.sh
autogen.sh
+34
-0
No files found.
autogen.sh
Dosyayı görüntüle @
dd771be1
...
...
@@ -11,6 +11,38 @@ sub clean()
print
"cleaned the build tree
\n
"
;
}
# check we have various vital tools
sub sanity_checks
(
$)
{
my
$system
=
shift
;
my @path
=
split
(
':'
,
$ENV
{
'PATH'
})
;
my %required
=
(
'pkg-config'
=>
"pkg-config is required to be installed"
,
'autoconf'
=>
"autoconf is required"
,
'aclocal'
=>
"aclocal is required"
,
# 'knurdle' => 'please knurdle me test'
)
;
my
$exe_ext
=
''
;
$exe_ext
=
".exe"
if
(
$system
=
~ m/CYGWIN/
)
;
for
my
$elem
(
@path
)
{
# print "check $elem\n";
for
my
$app
(
keys %required
)
{
if
(
-f
"
$elem
/
$app$exe_ext
"
)
{
# print "removing $app - found in $elem/$app\n";
delete
$required
{
$app
}
;
}
}
}
if
((
keys %required
)
>
0
)
{
print
(
"Various low-level dependencies are missing, please install them:
\n
"
)
;
for
my
$app
(
keys %required
)
{
print
"
\t
$app$exe_ext
: "
.
$required
{
$app
}
.
"
\n
"
;
}
exit
(
1
)
;
}
}
# one argument per line
sub read_args
(
$)
{
...
...
@@ -84,6 +116,8 @@ system ("touch ChangeLog");
my
$system
=
`
uname
-s
`
;
chomp
$system
;
sanity_checks (
$system
);
my
$aclocal_flags
=
$ENV
{ACLOCAL_FLAGS};
$aclocal_flags
= "
-I
./m4/mac
" if ((
$aclocal_flags
eq "") && (
$system
eq 'Darwin'));
...
...
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