diff options
author | 2013-08-16 19:50:42 +0100 | |
---|---|---|
committer | 2013-08-16 19:50:42 +0100 | |
commit | 30ecebff0ef6e60816dbf19470c23cc939f86bbb (patch) | |
tree | 2cfd130024e5507da78031fdc3c8f753bb062756 /rip-headers.sh | |
parent | initial 3.9 patchset based on last 3.8 patchset (diff) | |
download | linux-headers-patches-30ecebff0ef6e60816dbf19470c23cc939f86bbb.tar.gz linux-headers-patches-30ecebff0ef6e60816dbf19470c23cc939f86bbb.tar.bz2 linux-headers-patches-30ecebff0ef6e60816dbf19470c23cc939f86bbb.zip |
improve kernel tarball search
Diffstat (limited to 'rip-headers.sh')
-rwxr-xr-x | rip-headers.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/rip-headers.sh b/rip-headers.sh index d2b95f7..5f73fdf 100755 --- a/rip-headers.sh +++ b/rip-headers.sh @@ -9,12 +9,14 @@ src=linux-${ver} dst=gentoo-headers-base-${ver} if [ ! -d ${src} ] ; then - for srctar in . /usr/portage/distfiles ; do - srctar=${srctar}/${src}.tar.bz2 - if [ -e ${srctar} ] ; then - tar xf ${srctar} - break - fi + for srcdir in . /usr/portage/distfiles ; do + for ext in bz2 xz ; do + srctar=${srcdir}/${src}.tar.${ext} + if [ -e ${srctar} ] ; then + tar xf ${srctar} + break + fi + done done fi |