mirdeep2 package: make sure bins are executable (#10515)

This commit is contained in:
Justin Stanley 2019-02-07 13:05:19 -06:00 committed by Peter Scheibel
parent 570af0c313
commit ef89ae03bc

View file

@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
from os import chmod
import glob
@ -31,6 +32,7 @@ def patch(self):
with working_dir('src'):
files = glob.iglob("*.pl")
for file in files:
chmod(file, 0o755)
change = FileFilter(file)
change.filter('usr/bin/perl', 'usr/bin/env perl')
change.filter('perl -W', 'perl')