Many autotools-based projects have an autogen.sh script which handles creating the configure script properly. The existing build.sh does this but doesn't offer a way to just run autotools without configure/make. Here I split the first part of build.sh into autogen.sh and then call autogen.sh from build.sh. Using "set -e" cleans up the script a bit to avoid a long chain of "&&"s
8 lines
79 B
Bash
Executable file
8 lines
79 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
./autogen.sh
|
|
./configure "$@"
|
|
make -j4
|