view pax-mark-vm.in @ 3046:d0623b79350a default tip

Start 1.12.9 release cycle. 2014-01-23 Andrew John Hughes <gnu.andrew@redhat.com> * configure.ac: Set to 1.12.9pre. * NEWS: Add 1.12.9 section.
author Andrew John Hughes <gnu.andrew@redhat.com>
date Thu, 23 Jan 2014 00:56:22 +0000
parents f6a0a42bf443
children
line wrap: on
line source

#!/bin/sh

# Taken from Gentoo's pax-utils.eclass
list_paxables() {
       file "$@" 2> /dev/null | grep -E 'ELF.*(executable|shared object)' | sed -e 's/: .*$//'
}

if test "@PAX_COMMAND@" != "not specified"; then
       for paxable in `list_paxables "${1}"/bin/* "${1}"/jre/bin/*`; do
               echo "PaX mark @PAX_COMMAND_ARGS@ ${paxable}"
               @PAX_COMMAND@ @PAX_COMMAND_ARGS@ "${paxable}"
       done
fi