fritzkink
2023-12-15 9329acaef0fff79c242edf766ac84544d6422be8
tools/perl-integrate-module
@@ -107,6 +107,7 @@
# Following variables could be set by the hook-begin snippet
VERSION=
DOWNLOAD_URL=
LICENSE_FILE=
# Execute hook-begin snippet
if [[ -f "$CONF" ]] ; then
@@ -255,8 +256,12 @@
! $GMAKE patch > /dev/null 2>&1 && printf "FATAL: 'gmake patch' failed!\n" >&2 && exit 1
# Refresh patches
! $GMAKE refresh-patches > /dev/null 2>&1 && printf "FATAL: 'gmake refresh-patches' failed!\n" >&2 && exit 1
git add patches 2>/dev/null
if $GMAKE refresh-patches > /dev/null 2>&1 ; then
   git add patches 2>/dev/null
else
   printf "ERROR: 'gmake refresh-patches' failed!\n" >&2
   git checkout patches 2>/dev/null
fi
# Cleanup after patch refresh
$GMAKE clobber > /dev/null 2>&1
@@ -321,7 +326,7 @@
LICENSE=
LICFILE=
COPYRIGHT=
for f in LICENSE LICENCE COPYING COPYRIGHT ; do
for f in $LICENSE_FILE LICENSE LICENCE COPYING COPYRIGHT ; do
   [[ -f "$SOURCE_DIR$COMPONENT_SUBDIR/$f" ]] || continue
   LICFILE="$SOURCE_DIR$COMPONENT_SUBDIR/$f"
@@ -492,6 +497,8 @@
   LC_ALL=C sort -u history > history.new
   mv history.new history
   git add history
   awk '$2 == "noincorporate" {printf("WARNING: Unincorporated package: %s\n", $1)}' < history >&2
fi