Skip to content

fix for /bin/sh script #325

@edscott

Description

@edscott

error:

[100%] Creating packed binary of benchmarks/input/stonefile_benchmark
gmake[2]: ../benchmarks/input/create_hex_data_file.sh: No such file or directory
gmake[2]: *** [CMakeFiles/stonefile.dir/build.make:82: benchmarks/input/stonefile_benchmark.txt.gz.hex] Error 127
gmake[1]: *** [CMakeFiles/Makefile2:2114: CMakeFiles/stonefile.dir/all] Error 2
gmake: *** [Makefile:161: all] Error 2
--- Failed to build opm-upscaling ---

fix:
create_hex_data_file.sh.patch.txt
In Linux /bin/sh is the same thing as /bin/bash. But in FreeBSD bash is not necessarily installed. But /bin/sh works just fine for such a simple script.


--- benchmarks/input/create_hex_data_file.sh.orig	2020-10-17 14:09:04.707214000 -0500
+++ benchmarks/input/create_hex_data_file.sh	2020-10-17 14:08:53.035480000 -0500
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # This script takes an input file and dump it in hexadecimal (1 byte) format
 # The second input is the name of the output file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions