# -*- shell-script -*-
-# Copyright (C) 2007 - 2021 Steve Youngs <steve@sxemacs.org>
+# 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.
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
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:
=====
reasonable template for 'configure_commands()'...
cmake \\
+ -DBUILD_SHARED_LIBS=ON \\
-DCMAKE_BUILD_TYPE=Release \\
-DCMAKE_INSTALL_PREFIX=/usr \\
-DCMAKE_INSTALL_LIBDIR=lib \\
-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.
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<install_manifest.txt
fi