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
564150f6
Kaydet (Commit)
564150f6
authored
Şub 20, 2018
tarafından
Jan-Marek Glogowski
Kaydeden (comit)
Katarina Behrens
Haz 01, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add missing die and help functions
Change-Id: Ic2e6138b1ba1a8031a80e4e58f468b6c0f7a4de3
üst
01707116
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
check-elf-dynamic-objects
bin/check-elf-dynamic-objects
+27
-3
No files found.
bin/check-elf-dynamic-objects
Dosyayı görüntüle @
564150f6
...
...
@@ -15,6 +15,24 @@ set -euo pipefail
PARA
=
1
check_path
=
"
${
INSTDIR
:-
.
}
"
help
()
{
cat
<<
"EOF"
-d
<
dir
>
directory to check
-p
run unbound parallel checks
-h
help
EOF
[
-z
"
${
1
:-}
"
]
&&
exit
0
}
die
()
{
echo
"
$1
"
echo
help
1
exit
1
}
while
[
"
${
1
:-}
"
!=
""
]
;
do
parm
=
${
1
%%=*
}
arg
=
${
1
#*=
}
...
...
@@ -28,12 +46,18 @@ while [ "${1:-}" != "" ]; do
case
"
${
parm
}
"
in
--dir
|
-d
)
if
[
"
$has_arg
"
]
;
then
check_path
=
$arg
check_path
=
"
$arg
"
else
shift
check_path
=
$1
check_path
=
"
$1
"
fi
;;
if
[
!
-d
"
$check_path
"
]
;
then
die
"Invalid directory '
$check_path
'"
fi
;;
-h
)
help
;;
-p
)
# this sound counter intuitive. but the idea
# is to possibly support -p <n>
...
...
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