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
bf6e2d4c
Kaydet (Commit)
bf6e2d4c
authored
Şub 17, 2012
tarafından
Tim Retout
Kaydeden (comit)
Michael Meeks
Şub 18, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove packager::existence, and clean up packager::work.
üst
c866c25f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
115 deletions
+17
-115
existence.pm
solenv/bin/modules/packager/existence.pm
+0
-52
work.pm
solenv/bin/modules/packager/work.pm
+17
-63
No files found.
solenv/bin/modules/packager/existence.pm
deleted
100644 → 0
Dosyayı görüntüle @
c866c25f
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
package
packager::
existence
;
#############################
# Test of existence
#############################
sub
exists_in_array
{
my
(
$searchstring
,
$arrayref
)
=
@_
;
my
$alreadyexists
=
0
;
for
(
my
$i
=
0
;
$i
<=
$#
{
$arrayref
};
$i
++
)
{
if
(
$
{
$arrayref
}[
$i
]
eq
$searchstring
)
{
$alreadyexists
=
1
;
last
;
}
}
return
$alreadyexists
;
}
1
;
solenv/bin/modules/packager/work.pm
Dosyayı görüntüle @
bf6e2d4c
...
...
@@ -28,11 +28,12 @@
package
packager::
work
;
use
strict
;
use
warnings
;
use
base
'Exporter'
;
use
packager::
exiter
;
use
packager::
existence
;
use
packager::
files
;
use
packager::
globals
;
our
@EXPORT_OK
=
qw(
...
...
@@ -54,31 +55,6 @@ sub set_global_variable
$
packager::globals::
compiler
=
$compiler
;
}
#############################################################################
# Converting a string list with separator $listseparator
# into an array
#############################################################################
sub
convert_stringlist_into_array
{
my
(
$includestringref
,
$listseparator
)
=
@_
;
my
@newarray
=
();
my
$first
;
my
$last
=
$
{
$includestringref
};
while
(
$last
=~
/^\s*(.+?)\Q$listseparator\E(.+)\s*$/
)
# "$" for minimal matching
{
$first
=
$1
;
$last
=
$2
;
push
(
@newarray
,
"$first"
);
}
push
(
@newarray
,
"$last"
);
return
\
@newarray
;
}
###########################################
# Generating a list of package calls
# corresponding to the package list
...
...
@@ -90,51 +66,29 @@ sub create_package_todos
my
@targets
=
();
# only used, if the build server is not used
for
(
my
$i
=
0
;
$i
<=
$#
{
$packagelist
};
$i
++
)
{
my
$line
=
$
{
$packagelist
}[
$i
];
if
(
$line
=~
/^\s*\#/
)
{
next
;
}
# comment line
if
(
$line
=~
/^\s*(\w+?)\s+(\S+?)\s+(\S+?)\s+(\w+?)\s*$/
)
{
my
$product
=
$1
;
my
$compilerlist
=
$2
;
my
$languagelist
=
$3
;
my
$target
=
$4
;
for
my
$line
(
@
{
$packagelist
}
)
{
next
if
(
$line
=~
/^\s*\#/
);
# comment line
$product
=~
s/\s//g
;
$compilerlist
=~
s/\s//g
;
$languagelist
=~
s/\s//g
;
$target
=~
s/\s//g
;
my
(
$product
,
$compilerlist
,
$languagelist
,
$target
)
=
(
$line
=~
/^\s*(\w+?)\s+(\S+?)\s+(\S+?)\s+(\w+?)\s*$/
);
my
$compilers
=
convert_stringlist_into_array
(
\
$compilerlist
,
","
)
;
my
@compilers
=
split
','
,
$compilerlist
;
# is the compiler of this "build" part of the compiler list in pack.lst ?
# is the compiler of this "build" part of the compiler list in pack.lst ?
if
(
packager::existence::
exists_in_array
(
$
packager::globals::
compiler
,
$compilers
)
)
{
# products are separated in pack.lst by "|"
next
unless
grep
{
$_
eq
$
packager::globals::
compiler
}
@compilers
;
my
$languagesets
=
convert_stringlist_into_array
(
\
$languagelist
,
"\|"
);
# products are separated in pack.lst by "|"
# now all information is available to create the targets for the systemcalls
for
my
$languagestring
(
split
'\|'
,
$languagelist
)
{
$languagestring
=~
s/,/_/g
;
# comma in pack.lst becomes "_" in dmake command
# now all information is available to create the targets for the systemcalls
for
(
my
$j
=
0
;
$j
<=
$#
{
$languagesets
};
$j
++
)
{
my
$languagestring
=
$
{
$languagesets
}[
$j
];
$languagestring
=~
s/\,/\_/g
;
# comma in pack.lst becomes "_" in dmake command
my
$target
=
$target
.
"_"
.
$languagestring
;
push
(
@targets
,
$target
);
my
$insertline
=
$target
.
"\n"
;
push
(
@
packager::globals::
logfileinfo
,
$insertline
);
}
}
push
@targets
,
$target
.
'_'
.
$languagestring
;
}
}
push
@
packager::globals::
logfileinfo
,
map { $_ . "\n" } @ta
rgets
;
return
\
@targets
;
}
...
...
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