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
471fd2e4
Kaydet (Commit)
471fd2e4
authored
May 31, 2011
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Stylize consistently, add more Emacs mode goodness
üst
90a9bed1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
43 deletions
+42
-43
autogen.sh
autogen.sh
+42
-43
No files found.
autogen.sh
Dosyayı görüntüle @
471fd2e4
...
...
@@ -16,30 +16,28 @@ 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 requir
ed"
,
'aclocal'
=>
"aclocal
is required"
,
# 'knurdle' => 'please knurdle me test'
)
;
my %required
=
(
'pkg-config'
=>
"pkg-config is required to be install
ed"
,
'autoconf'
=>
"autoconf
is required"
,
'aclocal'
=>
"aclocal is required"
,
)
;
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
}
;
for
my
$app
(
keys %required
)
{
if
(
-f
"
$elem
/
$app$exe_ext
"
)
{
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
)
;
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
)
;
}
}
...
...
@@ -51,25 +49,24 @@ sub read_args($)
my @lst
;
open
(
$fh
,
$file
)
||
die
"can't open file:
$file
"
;
while
(
<
$fh
>)
{
chomp
()
;
# migrate from the old system
if
(
substr
(
$_
, 0, 1
)
eq
"'"
)
{
print
"Migrating options from the old autogen.lastrun format, using:
\n
"
;
my @opts
;
@opts
=
split
(
/
'/);
foreach my $opt (@opts) {
if ( substr($opt, 0, 1) eq "-" ) {
push @lst, $opt;
print " $opt\n";
}
chomp
()
;
# migrate from the old system
if
(
substr
(
$_
, 0, 1
)
eq
"'"
)
{
print
"Migrating options from the old autogen.lastrun format, using:
\n
"
;
my @opts
;
@opts
=
split
(
/
'/);
foreach my $opt (@opts) {
if ( substr($opt, 0, 1) eq "-" ) {
push @lst, $opt;
print " $opt\n";
}
}
} else {
push @lst, $_;
}
}
else {
push @lst, $_;
}
}
close ($fh);
#
print "read args from file '
$file
': @lst\n";
#
print "read args from file '
$file
': @lst\n";
return @lst;
}
...
...
@@ -81,8 +78,8 @@ sub invalid_distro($$)
my
$dirh
;
opendir (
$dirh
, "
distro-configs
");
while ((
$_
= readdir (
$dirh
))) {
/(.*)
\.
conf
$/
|| next;
print STDERR "
\t
$1
\n
";
/(.*)
\.
conf
$/
|| next;
print STDERR "
\t
$1
\n
";
}
closedir (
$dirh
);
}
...
...
@@ -98,16 +95,16 @@ if (!@ARGV) {
my @args;
for my
$arg
(@cmdline_args) {
if (
$arg
eq '--clean') {
clean();
clean();
} elsif (
$arg
=~ m/--with-distro=(.*)
$/
) {
my
$config
= "
distro-configs/
$1
.conf
";
if (! -f
$config
) {
invalid_distro (
$config
,
$1
);
my
$config
= "
distro-configs/
$1
.conf
";
if (! -f
$config
) {
invalid_distro (
$config
,
$1
);
} else {
push @args, read_args (
$config
);
}
} else {
push @args, read_args (
$config
);
}
} else {
push @args,
$arg
;
push @args,
$arg
;
}
}
...
...
@@ -149,6 +146,8 @@ if (defined $ENV{NOCONFIGURE}) {
}
# Local Variables:
# mode: perl
# cperl-indent-level: 4
# tab-width: 4
# indent-tabs-mode: nil
# End:
...
...
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