File: pax-mark-vm.in

package info (click to toggle)
openjdk-6 6b27-1.12.6-1~deb6u1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-proposed-updates
  • size: 133,540 kB
  • ctags: 37,146
  • sloc: java: 173,188; cpp: 13,710; asm: 6,470; ansic: 4,827; sh: 4,156; makefile: 4,149; perl: 1,005; python: 310
file content (13 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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