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
5da12b11
Kaydet (Commit)
5da12b11
authored
Ara 01, 2010
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
autogen.sh: Remove bashism / non-portable stuff.
üst
6637546a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
autogen.sh
autogen.sh
+16
-4
No files found.
autogen.sh
Dosyayı görüntüle @
5da12b11
...
...
@@ -15,7 +15,19 @@ requote()
set
--
"
${
@//\
'/$q\'
$q
}
"
# quote inner instances of '
set
--
"
${
@/#/
$q
}
"
# add ' to start of each param
set
--
"
${
@/%/
$q
}
"
# add ' to end of each param
echo
"
$*
"
echo
"
$*
"
# ' in a comment to stop confusing vim
}
distro
()
{
name
=
''
while
test
"$#"
-gt
0
;
do
case
"
$1
"
in
--with-distro
=
*
)
name
=
${
1
#--with-distro=
}
;;
esac
shift
done
echo
$name
}
old_args
=
""
...
...
@@ -34,16 +46,16 @@ if test "z`uname -s`" != "zDarwin" ; then
fi
conf_args
=
$(
requote
"
$@
"
)
distro_name
=
$(
requote
"
$@
"
|
sed
-n
-e
"s/.*'--with-distro=
\(
[^']*
\)
'.*/
\1
/p
"
)
distro_name
=
$(
distro
"
$@
"
)
if
test
"z
${
distro_name
}
"
!=
"z"
;
then
cumul
=
""
if
test
-f
"./distro-configs/
${
distro_name
}
.conf"
;
then
IFS
=
$'
\n
'
IFS
=
"
$(
printf
'\n'
)
"
for
opt
in
$(
cat
distro-configs/
${
distro_name
}
.conf
)
;
do
cumul
=
"
$cumul
$opt
"
;
done
;
unset
IFS
conf_args
=
$(
requote
"
$@
"
|
sed
-e
"s/'--with-distro=[^']*'/
$cumul
/"
)
else
echo
"Warning: there is no pre-set configuration for
${
distro_
config
}
, ignoring --with-distro=
${
distro_config
}
"
echo
"Warning: there is no pre-set configuration for
${
distro_
name
}
, ignoring --with-distro=
${
distro_name
}
"
fi
fi
...
...
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