1
0

a little hint to the next to call

OBS-URL: https://build.opensuse.org/package/show/Base:System/linux-glibc-devel?expand=0&rev=23
This commit is contained in:
Stephan Kulow 2010-09-13 13:48:42 +00:00 committed by Git OBS Bridge
parent 12dc26678b
commit 3715d520f0

View File

@ -7,6 +7,11 @@ then
echo "Usage: ${0##*/} linux-1.2.3.tar.gz" echo "Usage: ${0##*/} linux-1.2.3.tar.gz"
exit 1 exit 1
fi fi
if echo $PWD | grep -q :; then
echo "do not call this in a directory with : - make will fail"
exit 1
fi
kernel_dir="`tar -tf $1 | sed '1 {s@^.*[[:blank:]]@@;s@linux-@@;s@/.*$@@;s@^\([0-9]\+\.[0-9]\+\.[0-9]\+\)\(.*\)@\1@;p;Q}'`" kernel_dir="`tar -tf $1 | sed '1 {s@^.*[[:blank:]]@@;s@linux-@@;s@/.*$@@;s@^\([0-9]\+\.[0-9]\+\.[0-9]\+\)\(.*\)@\1@;p;Q}'`"
header_dir="$PWD/linux-glibc-devel-$kernel_dir" header_dir="$PWD/linux-glibc-devel-$kernel_dir"
if test -d "$kernel_dir" if test -d "$kernel_dir"