4 # Append the licenses for this project's dependencies to the end of the LICENSE file, if it exists.
12 # Update dependency licenses in the LICENSE file, if it exists.
13 if [[ -f "$target" ]] ; then
15 -e "s/\(^ *Copyright [^0-9]*[0-9][0-9][0-9][0-9]\)\([0-9-]*\)/\1-$year/" \
16 -e "s/\(^ *Copyright [^0-9]*$year\)\(-$year\)/\1/" \
17 -e '/DEPENDENCY LICENSES:/,$d' "$target" | sed -e :a -e '/^\n*$/{$d;N;ba' -e '}' > "$tmp"
20 echo "DEPENDENCY LICENSES:"
22 composer -n --working-dir=$dir licenses --no-dev | sed -e '1,/^ *$/d'
24 mv -f "$tmp" "$target"