diff options
Diffstat (limited to 'extra/cmake/build')
-rwxr-xr-x | extra/cmake/build | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/extra/cmake/build b/extra/cmake/build index 3d56e5bc..a2de31ab 100755 --- a/extra/cmake/build +++ b/extra/cmake/build @@ -2,7 +2,7 @@ # Use cmake to build cmake if installed. # This leads to a much faster build. -if cpt-list cmake; then +if cpt-list cmake >/dev/null 2>&1; then cmake -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ @@ -29,10 +29,3 @@ else make make DESTDIR="$1" install fi - -# Grab the package version. -IFS=. read -r ver1 ver2 _ < "${0%/*}/version" - -# Remove docs. -rm -rf "$1/usr/doc" -rm -rf "$1/usr/share/cmake-$ver1.$ver2/Help" |