1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

speedo: Do not not assume GNU tar.

--
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2014-11-05 08:56:52 +01:00
parent 6b54759976
commit 2402887584
2 changed files with 13 additions and 10 deletions

View File

@ -202,12 +202,12 @@ if [ "$myhost" = "find-version" ]; then
case "$version_parts" in
2)
matchstr1="$package-$major.[0-9][0-9]*"
matchstr1="$package-$major.[0-9]*"
matchstr2="$package-$major-base"
vers="$major.$minor"
;;
*)
matchstr1="$package-$major.$minor.[0-9][0-9]*"
matchstr1="$package-$major.$minor.[0-9]*"
matchstr2="$package-$major.$minor-base"
vers="$major.$minor.$micro"
;;

View File

@ -421,11 +421,13 @@ speedo_pkg_gpa_configure = \
speedo_pkg_gpgex_configure = \
--with-gpg-error-prefix=$(idir) \
--with-libassuan-prefix=$(idir)
--with-libassuan-prefix=$(idir) \
--enable-gpa-only
speedo_pkg_w64_gpgex_configure = \
--with-gpg-error-prefix=$(idir6) \
--with-libassuan-prefix=$(idir6)
--with-libassuan-prefix=$(idir6) \
--enable-gpa-only
#
@ -741,15 +743,16 @@ $(stampdir)/stamp-$(1)-00-unpack: $(stampdir)/stamp-directories
elif [ -n "$$$${tar}" ]; then \
echo "speedo: unpacking $(1) from $$$${tar}"; \
case "$$$${tar}" in \
*.gz) opt=z ;; \
*.bz2) opt=j ;; \
*.xz) opt=J ;; \
*) opt= ;; \
*.gz) pretar=zcat ;; \
*.bz2) pretar=bzcat ;; \
*.xz) pretar=xzcat ;; \
*) pretar=cat ;; \
esac; \
[ -f tmp.tgz ] && rm tmp.tgz; \
case "$$$${tar}" in \
/*) tar x$$$${opt}f - < $$$${tar} ;; \
*) wget -q -O - $$$${tar} | tee tmp.tgz | tar x$$$${opt}f - ;; \
/*) $$$${pretar} < $$$${tar} | tar xf - ;; \
*) wget -q -O - $$$${tar} | tee tmp.tgz \
| $$$${pretar} | tar x$$$${opt}f - ;; \
esac; \
if [ -f tmp.tgz ]; then \
if [ -n "$$$${sha1}" ]; then \