forked from pool/kernel-source-longterm
2df43ed8db
OBS-URL: https://build.opensuse.org/package/show/Kernel:slowroll/kernel-source-longterm?expand=0&rev=57
16 lines
385 B
Bash
16 lines
385 B
Bash
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
# Once the brp script is reasonably widespread, we will remove the specfile
|
|
# hack and this script
|
|
if test -x /usr/lib/rpm/brp-suse.d/brp-99-compress-vmlinux; then
|
|
exit 0
|
|
fi
|
|
vmlinux=$1
|
|
if test -e "$vmlinux" -a -e "$vmlinux.gz"; then
|
|
# Deliberately not using gzip -n; the vmlinux image has a predictable
|
|
# timestamp (bnc#880848#c20)
|
|
gzip -k -9 -f "$vmlinux"
|
|
fi
|