diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-04-03 12:52:28 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-04-03 12:52:28 +0000 |
commit | 213ec41a794fc6619fadbd1eb08949ff00b61e1d (patch) | |
tree | 96170ff7a6767c8e6a90cca9c29702215d3ccbae /pkgtools/url2pkg | |
parent | 4d7e080d87a1378f85becf5fa173b44079687015 (diff) | |
download | pkgsrc-213ec41a794fc6619fadbd1eb08949ff00b61e1d.tar.gz |
Properly recognize .tar.bz2 archives.
Patch by Antti Kantee <pooka@iki.fi>
Diffstat (limited to 'pkgtools/url2pkg')
-rwxr-xr-x | pkgtools/url2pkg/files/url2pkg | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgtools/url2pkg/files/url2pkg b/pkgtools/url2pkg/files/url2pkg index ef2757efc22..ef842174589 100755 --- a/pkgtools/url2pkg/files/url2pkg +++ b/pkgtools/url2pkg/files/url2pkg @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: url2pkg,v 1.8 2000/04/01 20:55:24 hubertf Exp $ +# $NetBSD: url2pkg,v 1.9 2000/04/03 12:52:28 hubertf Exp $ # # url2pkg # (c) 1999 Hubert Feyrer @@ -45,6 +45,9 @@ if [ ! -f w*/.extract_done ]; then *.tar.gz) EXTRACT_SUFX=.tar.gz DISTNAME=`expr ${DISTNAME} : '\(.*\)\.[^.]*\.[^.]*'` ;; + *.tar.bz2) EXTRACT_SUFX=.tar.bz2 + DISTNAME=`expr ${DISTNAME} : '\(.*\)\.[^.]*\.[^.]*'` + ;; *) EXTRACT_SUFX=`expr ${DISTNAME} : '.*\(\.[^.]*\)'` DISTNAME=`expr ${DISTNAME} : '\(.*\)\.[^.]*'` ;; |