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
bec85407
Kaydet (Commit)
bec85407
authored
Kas 21, 2012
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move check for wget and md5sum to configure
Change-Id: I1951f25ddff112e8184c90006cd6e87a1c02a930
üst
143f0b89
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
50 deletions
+59
-50
config_host.mk.in
config_host.mk.in
+3
-0
configure.ac
configure.ac
+50
-0
download
download
+6
-50
No files found.
config_host.mk.in
Dosyayı görüntüle @
bec85407
...
@@ -90,6 +90,7 @@ export CPUNAME_FOR_BUILD=@CPUNAME_FOR_BUILD@
...
@@ -90,6 +90,7 @@ export CPUNAME_FOR_BUILD=@CPUNAME_FOR_BUILD@
export CPU_FOR_BUILD=@CPU_FOR_BUILD@
export CPU_FOR_BUILD=@CPU_FOR_BUILD@
export CROSS_COMPILING=@CROSS_COMPILING@
export CROSS_COMPILING=@CROSS_COMPILING@
export CT2N_TARBALL=@CT2N_TARBALL@
export CT2N_TARBALL=@CT2N_TARBALL@
export CURL=@CURL@
export CURL_TARBALL=@CURL_TARBALL@
export CURL_TARBALL=@CURL_TARBALL@
export CURL_CFLAGS=$(gb_SPACE)@CURL_CFLAGS@
export CURL_CFLAGS=$(gb_SPACE)@CURL_CFLAGS@
export CURL_LIBS=$(gb_SPACE)@CURL_LIBS@
export CURL_LIBS=$(gb_SPACE)@CURL_LIBS@
...
@@ -361,6 +362,7 @@ export MACOSX_SDK_PATH=@MACOSX_SDK_PATH@
...
@@ -361,6 +362,7 @@ export MACOSX_SDK_PATH=@MACOSX_SDK_PATH@
export MACOSX_SDK_VERSION=@MACOSX_SDK_VERSION@
export MACOSX_SDK_VERSION=@MACOSX_SDK_VERSION@
export MAC_OS_X_VERSION_MAX_ALLOWED=@MAC_OS_X_VERSION_MAX_ALLOWED@
export MAC_OS_X_VERSION_MAX_ALLOWED=@MAC_OS_X_VERSION_MAX_ALLOWED@
export MAC_OS_X_VERSION_MIN_REQUIRED=@MAC_OS_X_VERSION_MIN_REQUIRED@
export MAC_OS_X_VERSION_MIN_REQUIRED=@MAC_OS_X_VERSION_MIN_REQUIRED@
export MD5SUM=@MD5SUM@
export MDDS_CPPFLAGS=$(gb_SPACE)@MDDS_CPPFLAGS@
export MDDS_CPPFLAGS=$(gb_SPACE)@MDDS_CPPFLAGS@
export MDDS_TARBALL=@MDDS_TARBALL@
export MDDS_TARBALL=@MDDS_TARBALL@
export MERGELIBS=@MERGELIBS@
export MERGELIBS=@MERGELIBS@
...
@@ -662,6 +664,7 @@ export VISIO_CFLAGS=$(gb_SPACE)@VISIO_CFLAGS@
...
@@ -662,6 +664,7 @@ export VISIO_CFLAGS=$(gb_SPACE)@VISIO_CFLAGS@
export VISIO_LIBS=$(gb_SPACE)@VISIO_LIBS@
export VISIO_LIBS=$(gb_SPACE)@VISIO_LIBS@
export VISIO_TARBALL=@VISIO_TARBALL@
export VISIO_TARBALL=@VISIO_TARBALL@
export WATCH_WINDOW_EXTENSION_PACK=@WATCH_WINDOW_EXTENSION_PACK@
export WATCH_WINDOW_EXTENSION_PACK=@WATCH_WINDOW_EXTENSION_PACK@
export WGET=@WGET@
export WINDOWS_SDK_HOME=@WINDOWS_SDK_HOME@
export WINDOWS_SDK_HOME=@WINDOWS_SDK_HOME@
export WINDOWS_SDK_VERSION=@WINDOWS_SDK_VERSION@
export WINDOWS_SDK_VERSION=@WINDOWS_SDK_VERSION@
export WINDRES=@WINDRES@
export WINDRES=@WINDRES@
...
...
configure.ac
Dosyayı görüntüle @
bec85407
...
@@ -11835,6 +11835,56 @@ AC_SUBST([DOXYGEN])
...
@@ -11835,6 +11835,56 @@ AC_SUBST([DOXYGEN])
AC_SUBST(SCPDEFS)
AC_SUBST(SCPDEFS)
#
# check for wget and md5sum
#
WGET=
MD5SUM=
CURL=`which curl 2>/dev/null`
for i in wget /usr/bin/wget /usr/local/bin/wget /usr/sfw/bin/wget /opt/sfw/bin/wget /opt/local/bin/wget; do
eval "$i --version" > /dev/null 2>&1
ret=$?
if test $ret -eq 0; then
WGET=$i
break
fi
done
if test -z "$WGET" -a -z "$CURL"; then
AC_MSG_ERROR([neither wget nor curl found!])
fi
for i in md5 md5sum /usr/local/bin/md5sum gmd5sum /usr/sfw/bin/md5sum /opt/sfw/bin/gmd5sum /opt/local/bin/md5sum; do
if test "$i" = "md5"; then
eval "$i -x" > /dev/null 2>&1
else
eval "$i --version" > /dev/null 2>&1
fi
ret=$?
if test $ret -eq 0; then
MD5SUM=$i
break
fi
done
if test "$MD5SUM" = "md5"; then
if md5 -r < /dev/null > /dev/null 2>/dev/null; then
MD5SUM="$MD5SUM -r"
elif md5 -n < /dev/null > /dev/null 2>/dev/null; then
MD5SUM="$MD5SUM -n"
fi
fi
if test -z "$MD5SUM"; then
AC_MSG_WARN([no md5sum: found!])
add_warning "no md5sum: found!"
fi
AC_SUBST(WGET)
AC_SUBST(CURL)
AC_SUBST(MD5SUM)
dnl ===================================================================
dnl ===================================================================
dnl Product version
dnl Product version
dnl ===================================================================
dnl ===================================================================
...
...
download
Dosyayı görüntüle @
bec85407
...
@@ -30,7 +30,7 @@ set -o pipefail
...
@@ -30,7 +30,7 @@ set -o pipefail
# environment setup yet?
# environment setup yet?
if
[
-z
"
$TARFILE_LOCATION
"
]
;
then
if
[
-z
"
$TARFILE_LOCATION
"
]
;
then
.
./bin/get_config_variables TARFILE_LOCATION GIT_LINK_SRC GIT_NEEDED_SUBMODULES COM CPUNAME VCVER DBGHELP_DLL SRC_ROOT OXYGENOFFICE_PACK
.
./bin/get_config_variables TARFILE_LOCATION GIT_LINK_SRC GIT_NEEDED_SUBMODULES COM CPUNAME VCVER DBGHELP_DLL SRC_ROOT OXYGENOFFICE_PACK
WGET CURL MD5SUM
fi
fi
# we want to clone if we are in the bootstrap git repo and clone does not exist yet
# we want to clone if we are in the bootstrap git repo and clone does not exist yet
...
@@ -77,50 +77,6 @@ if [ -z "$FILELIST" ]; then
...
@@ -77,50 +77,6 @@ if [ -z "$FILELIST" ]; then
FILELIST
=
"ooo.lst"
FILELIST
=
"ooo.lst"
fi
fi
# check for wget and md5sum
wget
=
md5sum
=
curl
=
`
which curl 2>/dev/null
`
for
i
in
wget /usr/bin/wget /usr/local/bin/wget /usr/sfw/bin/wget /opt/sfw/bin/wget /opt/local/bin/wget
;
do
eval
"
$i
--version"
>
/dev/null 2>&1
ret
=
$?
if
[
$ret
-eq
0
]
;
then
wget
=
$i
break
fi
done
if
[
-z
"
$wget
"
-a
-z
"
$curl
"
]
;
then
echo
"ERROR: neither wget nor curl found!"
exit
1
fi
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
break
fi
done
if
[
"
$md5sum
"
=
"md5"
]
;
then
if
md5
-r
< /dev/null
>
/dev/null 2>/dev/null
;
then
md5special
=
-r
elif
md5
-n
< /dev/null
>
/dev/null 2>/dev/null
;
then
md5special
=
-n
fi
fi
if
[
-z
"
$md5sum
"
]
;
then
echo
"Warning: no md5sum: found!"
fi
start_dir
=
`
pwd
`
start_dir
=
`
pwd
`
logfile
=
$TARFILE_LOCATION
/fetch.log
logfile
=
$TARFILE_LOCATION
/fetch.log
date
>>
$logfile
date
>>
$logfile
...
@@ -130,11 +86,11 @@ downloaditem()
...
@@ -130,11 +86,11 @@ downloaditem()
if
[
"
$1
"
!=
""
]
;
then
if
[
"
$1
"
!=
""
]
;
then
if
[
!
-f
"../
$2
"
]
;
then
if
[
!
-f
"../
$2
"
]
;
then
echo
$2
echo
$2
if
[
!
-z
"
$
wget
"
]
;
then
if
[
!
-z
"
$
WGET
"
]
;
then
$
wget
--progress
=
dot:mega
-Q
0
-P
"."
-l
0
-nd
-nH
-N
$1
/
$2
2>&1 |
tee
-a
$logfile
$
WGET
--progress
=
dot:mega
-Q
0
-P
"."
-l
0
-nd
-nH
-N
$1
/
$2
2>&1 |
tee
-a
$logfile
else
else
echo
fetching
$2
echo
fetching
$2
$
curl
$file_date_check
-O
$1
/
$2
2>&1 |
tee
-a
$logfile
$
CURL
$file_date_check
-O
$1
/
$2
2>&1 |
tee
-a
$logfile
fi
fi
wret
=
$?
wret
=
$?
if
[
$wret
-ne
0
]
;
then
if
[
$wret
-ne
0
]
;
then
...
@@ -142,8 +98,8 @@ downloaditem()
...
@@ -142,8 +98,8 @@ downloaditem()
failed
=
"
$failed
$2
"
failed
=
"
$failed
$2
"
wret
=
0
wret
=
0
fi
fi
if
[
-f
$2
-a
-n
"
$3
"
-a
-n
"
$
md5sum
"
]
;
then
if
[
-f
$2
-a
-n
"
$3
"
-a
-n
"
$
MD5SUM
"
]
;
then
sum
=
`
$
md5sum
$md5special
$2
|
sed
"s/ .*//"
`
sum
=
`
$
MD5SUM
$2
|
sed
"s/ .*//"
`
if
[
"
$sum
"
!=
"
$3
"
]
;
then
if
[
"
$sum
"
!=
"
$3
"
]
;
then
echo
checksum failure
for
$2
2>&1 |
tee
-a
$logfile
echo
checksum failure
for
$2
2>&1 |
tee
-a
$logfile
failed
=
"
$failed
$2
"
failed
=
"
$failed
$2
"
...
...
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