Skip to content
Snippets Groups Projects
Commit 8e201512 authored by snehring's avatar snehring Committed by Peter Scheibel
Browse files

sspace-standard: use Getopt::Std instead of getopts.pl (#9516)

getopts.pl is not listed as a Spack dependency of sspace-standard,
so without this change, this package was only working on systems
where getopts.pl was already installed.
parent aae99425
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,9 @@ def install(self, spec, prefix): ...@@ -55,6 +55,9 @@ def install(self, spec, prefix):
for s in scripts: for s in scripts:
filter_file('/usr/bin/perl', '/usr/bin/env perl', filter_file('/usr/bin/perl', '/usr/bin/env perl',
s, string=True) s, string=True)
filter_file('require "getopts.pl";', 'use Getopt::Std;',
s, string=True)
filter_file('&Getopts(', 'getopts(', s, string=True)
install_tree('bin', prefix.bin) install_tree('bin', prefix.bin)
install_tree('bowtie', prefix.bowtie) install_tree('bowtie', prefix.bowtie)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment