view pax-mark-vm.in @ 2743:77e853407ef2 default tip

Close off branch. 2014-07-23 Andrew John Hughes <gnu_andrew@member.fsf.org> * configure.ac: Bump to 2.4.9pre00. * NEWS: Add 2.4.9 section.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Thu, 24 Jul 2014 04:58:40 +0100
parents f59e4269da38
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 "x@PAX_COMMAND@" != "x"; 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