pyinotify: Use SRC_FILENAMES. Remove slack-desc config files warning.

This commit is contained in:
Darren 'Tadgy' Austin 2022-10-08 16:36:48 +01:00
commit d42fb2cee9
3 changed files with 5 additions and 8 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash
# Version: 0.6.9
# Version: 0.6.10
# Copyright (c) 2005-2022:
# Darren 'Tadgy' Austin <darren (at) afterdark.org.uk>
# Licensed under the terms of the GNU General Public License version 3.
@ -212,15 +212,12 @@ for ((I = 0; I < ${#SRC_DIRNAMES[@]}; I++)); do
# Build each source in the array.
case "$I" in
0)
# Patch before build.
# zcat $SRC_DIR/patches/EDITME.diff.gz | patch -p0 || die "Source patching failed for: EDITME.diff.gz"
# Build and install.
python3 setup.py install --prefix "$BUILD_PREFIX" --compile --root "$BUILD_ROOT" || die "Build failed: ${SRC_DIRNAMES[I]%%.*}"
python3 setup.py install --prefix "$BUILD_PREFIX" --compile --root "$BUILD_ROOT" || die "Build failed: ${SRC_FILENAMES[I]%-*}"
# Package documentation.
mkdir -p -m 755 "$BUILD_ROOT/$BUILD_PREFIX/doc/${SRC_FILENAMES[I]%.@(tar|tar.?z|t?z|zip)}" && cp --parents ACKS COPYING README.md \
"$BUILD_ROOT/$BUILD_PREFIX/doc/${SRC_FILENAMES[I]%.@(tar|tar.?z|t?z|zip)}" || die "Documentation copy failed: ${SRC_DIRNAMES[I]}"
"$BUILD_ROOT/$BUILD_PREFIX/doc/${SRC_FILENAMES[I]%.@(tar|tar.?z|t?z|zip)}" || die "Documentation copy failed: ${SRC_FILENAMES[I]%-*}"
;;
*)
die "Un-handled source file - no build configuration"