diff options
author | Evan Lojewski <github@meklort.com> | 2020-09-12 10:12:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 10:12:57 -0600 |
commit | 0d07c0650f9ebb983a6a23b4a717ea3a695248cf (patch) | |
tree | 24448df5ecc8a4d15b3d6a6599810e14da2d0905 | |
parent | f062f1a81abe4ec11ceddb3c14d63ac341f603cc (diff) | |
download | bcm5719-ortega-0d07c0650f9ebb983a6a23b4a717ea3a695248cf.tar.gz bcm5719-ortega-0d07c0650f9ebb983a6a23b4a717ea3a695248cf.zip |
build: Fix a packaging failure when the path has parens in it. (#103)
-rwxr-xr-x | build.sh | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -61,6 +61,20 @@ then fi fi +if [ ! -x "$CPACK" ] +then + CPACK=`which cpack3` + if [ ! -x "$CPACK" ] + then + CPACK=`which cpack` + if [ ! -x "$CPACK" ] + then + echo "ERROR: Unable to locate cpack." + exit -1 + fi + fi +fi + NINJA=`which ninja-build` if [ -x "$NINJA" ] then @@ -94,4 +108,5 @@ cd "$BUILD_DIR" # Generate release packages. "$CMAKE" --build . --target package -"$CMAKE" --build . --target package_source +# Work around an issue with --target package_source that fails due to ('s in the path +"$CPACK" --config ./CPackSourceConfig.cmake |