Skip to content

Commit

Permalink
Include generation of plain text version
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Jun 28, 2024
1 parent 56dcd94 commit 3a91ad6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .ci/generate-licenses
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,18 @@ sed "s/%VERSION%/${version}/" "${license_template}" > "${license_destination}" |
failure "Unable to update version in ${license_destination}"
sed -i "s/%YEAR%/${license_date}/" "${license_destination}" ||
failure "Unable to update year in ${license_destination}"


license_template="./templates/license/license.tmpl"
license_destination="${license_dir}/LICENSE.txt"

debug "Updating license file: ${license_destination}"

if [ ! -f "${license_template}" ]; then
failure "Unable to locate license template (${license_template})"
fi

sed "s/%VERSION%/${version}/" "${license_template}" > "${license_destination}" ||
failure "Unable to update version in ${license_destination}"
sed -i "s/%YEAR%/${license_date}/" "${license_destination}" ||
failure "Unable to update year in ${license_destination}"

0 comments on commit 3a91ad6

Please sign in to comment.