summaryrefslogtreecommitdiff
path: root/pkgtools/url2pkg/files
diff options
context:
space:
mode:
authorhubertf <hubertf>2001-12-29 13:07:14 +0000
committerhubertf <hubertf>2001-12-29 13:07:14 +0000
commit99f21a826864ad69d106335dc4df0d87fea1544e (patch)
tree99edb7f6d790609b99adfc93be3021e636bb8c94 /pkgtools/url2pkg/files
parent24cd332e2c9a801033aecf33b209e22f52aaec52 (diff)
downloadpkgsrc-99f21a826864ad69d106335dc4df0d87fea1544e.tar.gz
Bump to 1.17: properly recognize .tar.Z files
Patch sent by Amitai Schlair <schmonz@schmonz.com> in private mail.
Diffstat (limited to 'pkgtools/url2pkg/files')
-rwxr-xr-xpkgtools/url2pkg/files/url2pkg5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgtools/url2pkg/files/url2pkg b/pkgtools/url2pkg/files/url2pkg
index f4cc41a6dc7..72e00d6e124 100755
--- a/pkgtools/url2pkg/files/url2pkg
+++ b/pkgtools/url2pkg/files/url2pkg
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: url2pkg,v 1.17 2001/10/31 18:45:43 zuntum Exp $
+# $NetBSD: url2pkg,v 1.18 2001/12/29 13:07:14 hubertf Exp $
#
# url2pkg
# (c) 1999 Hubert Feyrer
@@ -46,6 +46,9 @@ if [ ! -f w*/.extract_done ]; then
*.tgz) EXTRACT_SUFX=".tgz"
DISTNAME=`expr ${DISTNAME} : '\(.*\)\.[^.]*'`
;;
+ *.tar.Z) EXTRACT_SUFX=.tar.Z
+ DISTNAME=`expr ${DISTNAME} : '\(.*\)\.[^.]*\.[^.]*'`
+ ;;
*.tar.gz) EXTRACT_SUFX=.tar.gz
DISTNAME=`expr ${DISTNAME} : '\(.*\)\.[^.]*\.[^.]*'`
;;