Nightly build: the directory structure on ftp.kernel.org has been modified once more. Update scripts/run-regression-tests accordingly

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3998 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-12-16 10:16:12 +00:00
parent c8fc2dd821
commit bad8f4498d

View File

@@ -78,14 +78,8 @@ function extract_kernel_tree {
mkdir "${tmpdir}" || return $?
(
cd "${tmpdir}" || return $?
tar xjf "${kernel_sources}/linux-${kver}.tar.bz2" || return $?
cd "linux-${kver}" || return $?
if [ "${plevel}" != "" ]; then
bzip2 -cd "${kernel_sources}/patch-$1.bz2" \
| patch -p1 -f -s || return $?
fi
cd ..
mv "linux-${kver}" "../linux-$1" || return $?
tar xaf "${kernel_sources}/linux-$1.tar.xz" || return $?
mv "linux-$1" ".." || return $?
if [ "$1" = "2.6.29" -o "$1" = "2.6.29.1" -o "$1" = "2.6.29.2" -o "$1" = "2.6.29.3" ]
then
cd "../linux-$1" || return $?
@@ -288,13 +282,9 @@ function download_kernel {
test -w "${kernel_sources}" || return $?
(
cd "${kernel_sources}" || return $?
download_file "${kernel_mirror}/v$series/linux-$kver.tar.bz2" \
download_file "${kernel_mirror}/v$series/linux-$1.tar.xz" \
|| download_file "${kernel_mirror}/v$series/longterm/v${kver}/linux-$1.tar.xz" \
|| return $?
if [ "${plevel}" != "" ]; then
download_file "${kernel_mirror}/v$series/patch-$1.bz2" \
|| download_file "${kernel_longterm}/v$series/longterm/patch-$1.bz2" \
|| return $?
fi
)
}