| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | ## Check config.param |
| 4 | if [scip-shell system . . `[`. -f ./config.param ] |
| 5 | then |
| 6 | ## Set PATH |
| 7 | if [scip-shell system . . `[`. -f ./config.path ] |
| 8 | then |
| 9 | PATHCONTENT=$(catscip-shell system . . cat. ./config.path) |
| 10 | PATHS=$(echoscip-shell system . . echo. "$PATHCONTENT" | trscip-shell system . . tr. ":" "\n") |
| 11 | |
| 12 | ## Exclude duplicate |
| 13 | for path in $PATHS |
| 14 | do |
| 15 | [scip-shell system . . `[`. "${PATH#*$path}" = "$PATH" ] && eval export PATH=\"$path:$PATH\" |
| 16 | done |
| 17 | fi |
| 18 | |
| 19 | ## Print PATH |
| 20 | echoscip-shell system . . echo. "INFO - PATH:" |
| 21 | echoscip-shell system . . echo. "PATH=$PATH" |
| 22 | echoscip-shell system . . echo. "" |
| 23 | |
| 24 | ## Print config.param |
| 25 | echoscip-shell system . . echo. "INFO - config.param:" |
| 26 | catscip-shell system . . cat. ./config.param |
| 27 | echoscip-shell system . . echo. "" |
| 28 | |
| 29 | ## Run ./configure |
| 30 | < ./config.param xargsscip-shell system . . xargs. ./configure "$@" |
| 31 | else |
| 32 | echoscip-shell system . . echo. "No config.param file found" |
| 33 | echoscip-shell system . . echo. "Please run ./configure or read the readme/README_COMPILATION.md file" |
| 34 | fi |