Marcel Telka
2023-11-18 ac0b30fc3dbc44bc58cf665b2fa19bccc980ab3f
tools/perl-integrate-module: allow to set LICENSE_FILE in hook-begin

1 files modified
3 ■■■■ changed files
tools/perl-integrate-module 3 ●●●● patch | view | raw | blame | history
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
@@ -321,7 +322,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"