2014-07-18 14:03:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2014-08-22 08:03:45 +02:00
|
|
|
# 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
|
2014-07-18 14:03:22 +02:00
|
|
|
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
|