From: Steve Youngs Date: Mon, 17 May 2021 07:29:20 +0000 (+1000) Subject: Minor updates for B-tips X-Git-Url: http://cgit.sxemacs.org/?p=pkgusr;a=commitdiff_plain;h=e1e2b13df87cae565cba1e291a75cb474a216e02 Minor updates for B-tips Signed-off-by: Steve Youngs --- diff --git a/etc/pkgusr/handy_funcs b/etc/pkgusr/handy_funcs index eea3b0c..2e6202f 100644 --- a/etc/pkgusr/handy_funcs +++ b/etc/pkgusr/handy_funcs @@ -1,5 +1,6 @@ # -*- shell-script -*- -# Copyright (C) 2007 - 2021 Steve Youngs +# Copyright © 2007 - 2021 Steve Youngs All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause # What lies here is a collection of handy bash shell functions and # aliases that make life a little easier for pkgusr. @@ -28,7 +29,7 @@ section of the build script... if [[ \${FORCE} -eq 1 ]]; then _cmd=configure TREE=\${PWD} echo '***' No logs on a FORCE run - echo Check what happened with: \'meson introspect --buildoptions -i\' + echo See changes with: \'meson introspect --buildoptions -i\' else TREE=\${SRCTREE} fi @@ -63,7 +64,7 @@ of the build script... ninja install && # Meson builds tend not to update timestamps meson introspect --installed -i | - awk '{print \$2}'|tr -d '",'|xargs touch -h + awk '{print \$2}'|tr -d '",'|xargs touch -ch CMake: ===== @@ -73,6 +74,7 @@ Always use Ninja instead of old crusty unix makefiles. Here is a reasonable template for 'configure_commands()'... cmake \\ + -DBUILD_SHARED_LIBS=ON \\ -DCMAKE_BUILD_TYPE=Release \\ -DCMAKE_INSTALL_PREFIX=/usr \\ -DCMAKE_INSTALL_LIBDIR=lib \\ @@ -80,9 +82,14 @@ reasonable template for 'configure_commands()'... -DCMAKE_INSTALL_LOCALSTATEDIR=/var \\ -DCMAKE_INSTALL_RUNSTATEDIR=/run \\ -DCMAKE_INSTALL_SYSCONFDIR=/etc \\ + -Wno-dev \\ any other options here \\ -G Ninja \${SRCTREE} +CMake equivalent of configure --help + + cmake -LAH -G Ninja ../SRCTREE &>,,conf + Like Meson, CMake path options are relative to prefix unless the value begins with a '/' and then it is absolute. @@ -98,7 +105,7 @@ Here is the 'install_commands()' template for CMake builds... if [ -f install_manifest.txt ]; then echo>>install_manifest.txt # we need a final newline while read file; do - touch -h \"\${file}\" + touch -ch "\${file}" done