mirdeep2 package: make sure bins are executable (#10515)
This commit is contained in:
parent
570af0c313
commit
ef89ae03bc
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
|
from os import chmod
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,6 +32,7 @@ def patch(self):
|
||||||
with working_dir('src'):
|
with working_dir('src'):
|
||||||
files = glob.iglob("*.pl")
|
files = glob.iglob("*.pl")
|
||||||
for file in files:
|
for file in files:
|
||||||
|
chmod(file, 0o755)
|
||||||
change = FileFilter(file)
|
change = FileFilter(file)
|
||||||
change.filter('usr/bin/perl', 'usr/bin/env perl')
|
change.filter('usr/bin/perl', 'usr/bin/env perl')
|
||||||
change.filter('perl -W', 'perl')
|
change.filter('perl -W', 'perl')
|
||||||
|
|
Loading…
Reference in a new issue