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
f3823f56
Kaydet (Commit)
f3823f56
authored
Nis 27, 2010
tarafından
Hans-Joachim Lankenau
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ause119: #i111075# usability, stability and macosx fixes
üst
35170adf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
25 deletions
+44
-25
fetch_tarballs.sh
fetch_tarballs.sh
+44
-25
No files found.
fetch_tarballs.sh
Dosyayı görüntüle @
f3823f56
...
...
@@ -3,14 +3,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 200
8 by Sun Microsystems, Inc
.
# Copyright 200
0, 2010 Oracle and/or its affiliates
.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.8 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
...
...
@@ -65,25 +61,31 @@ for i in wget /usr/bin/wget /usr/local/bin/wget /usr/sfw/bin/wget /opt/sfw/bin/w
fi
done
for
i
in
curl /usr/bin/curl /usr/local/bin/curl /usr/sfw/bin/curl /opt/sfw/bin/curl /opt/local/bin/curl
;
do
# mac curl returns "2" on --version
# eval "$i --version" > /dev/null 2>&1
# ret=$?
# if [ $ret -eq 0 ]; then
if
[
-x
$i
]
;
then
curl
=
$i
echo
found curl:
$curl
break
2
fi
done
if
[
-z
"
$wget
"
]
;
then
for
i
in
curl /usr/bin/curl /usr/local/bin/curl /usr/sfw/bin/curl /opt/sfw/bin/curl /opt/local/bin/curl
;
do
# mac curl returns "2" on --version
# eval "$i --version" > /dev/null 2>&1
# ret=$?
# if [ $ret -eq 0 ]; then
if
[
-x
$i
]
;
then
curl
=
$i
echo
found curl:
$curl
break
2
fi
done
fi
if
[
-z
"
$wget
"
-a
-z
"
$curl
"
]
;
then
echo
"ERROR: neither wget nor curl found!"
exit
fi
for
i
in
md5sum
/usr/local/bin/md5sum gmd5sum /usr/sfw/bin/md5sum /opt/sfw/bin/gmd5sum /opt/local/bin/md5sum
;
do
eval
"
$i
--version"
>
/dev/null 2>&1
for
i
in
md5
md5sum
/usr/local/bin/md5sum gmd5sum /usr/sfw/bin/md5sum /opt/sfw/bin/gmd5sum /opt/local/bin/md5sum
;
do
if
[
"
$i
"
=
"md5"
]
;
then
eval
"
$i
-x"
>
/dev/null 2>&1
else
eval
"
$i
--version"
>
/dev/null 2>&1
fi
ret
=
$?
if
[
$ret
-eq
0
]
;
then
md5sum
=
$i
...
...
@@ -92,44 +94,61 @@ for i in md5sum /usr/local/bin/md5sum gmd5sum /usr/sfw/bin/md5sum /opt/sfw/bin/g
fi
done
if
[
"
$md5sum
"
=
"md5"
]
;
then
md5special
=
-r
fi
if
[
-z
"
$md5sum
"
]
;
then
echo
"Warning: no md5sum: found!"
fi
start_dir
=
`
pwd
`
logfile
=
$TARFILE_LOCATION
/fetch.log
date
>>
$logfile
filelist
=
`
cat
$1
`
cd
$TARFILE_LOCATION
mkdir
-p
$TARFILE_LOCATION
/tmp
cd
$TARFILE_LOCATION
/tmp
echo
$$
>
fetch-running
for
i
in
$filelist
;
do
# echo $i
#
echo $i
if
[
"
$i
"
!=
`
echo
$i
|
sed
"s/^http:
\/
//"
`
]
;
then
tarurl
=
$i
# TODO: check for comment
else
if
[
"
$tarurl
"
!=
""
]
;
then
if
[
!
-f
"
$i
"
]
;
then
if
[
!
-f
"../
$i
"
]
;
then
echo
$i
if
[
!
-z
"
$wget
"
]
;
then
$wget
-nv
-N
$tarurl
/
$i
$wget
-nv
-N
$tarurl
/
$i
2>&1 |
tee
-a
$logfile
else
echo
fetching
$i
$curl
$file_date_check
-O
$tarurl
/
$i
$curl
$file_date_check
-O
$tarurl
/
$i
2>&1 |
tee
-a
$logfile
fi
wret
=
$?
if
[
$wret
-ne
0
]
;
then
mv
$i
${
i
}
_broken
failed
=
"
$failed
$i
"
wret
=
0
fi
if
[
-f
$i
-a
-n
"
$md5sum
"
]
;
then
sum
=
`
$md5sum
$
i
|
sed
"s/ [ *]
.*//"
`
sum
=
`
$md5sum
$
md5special
$i
|
sed
"s/
.*//"
`
sum2
=
`
echo
$i
|
sed
"s/-.*//"
`
if
[
"
$sum
"
!=
"
$sum2
"
]
;
then
echo
checksum failure
for
$i
echo
checksum failure
for
$i
2>&1 |
tee
-a
$logfile
failed
=
"
$failed
$i
"
mv
$i
${
i
}
_broken
else
mv
$i
..
fi
else
mv
$i
..
fi
fi
fi
fi
done
rm
$TARFILE_LOCATION
/tmp/
*
-
*
cd
$start_dir
if
[
!
-z
"
$failed
"
]
;
then
...
...
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