Skip to content

Minor Changes to MlbDev/.MASCaPS/CreateSpecList.pl #4

@mlbrock

Description

@mlbrock

Really just to permit test runs under MS Windows --- not that one'd ever want to run it for real under that OS!

Linux:
128 $this_hostname = hostname -s;
Windows (because Windows hostname doesn't accept "-s"):
128 $this_hostname = hostname;

Linux:
141 $this_username =~ s/^\s+|\s+$//g;
Windows (because Windows whoami may include domain-names):
141B $this_username =~ s/^.+\(.+)$/\1/g;

Add support for forcing file and directory names to be emitted even if they don't exists in the file system. So, assuming we parsing a parameter specifying such behavior ("--no-require-existence")captured in $check_existence_flag:

Linux:
170: if (CheckComboFile($seg_string, $this_combo)) {
Windows:
170: if ((!check_existence_flag) || CheckComboFile($seg_string, $this_combo)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions