You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/build
Jason Song ea1afb945d
Replace placeholders in licenses (#24354)
Replace #22117. Implement it in a more maintainable way.

Some licenses have placeholders e.g. the BSD licenses start with this
line:
```
Copyright (c) <year> <owner>. 
```
This PR replaces the placeholders with the correct value when initialize
a new repo.

### FAQ

- Why not use a regex?
It will be a pretty complicated regex which could be hard to maintain.

- There're still missing placeholders.
There are over 500 licenses, it's impossible for anyone to inspect all
of them alone. Please help to add them if you find any, and it is also
OK to leave them for the future.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
1 year ago
..
codeformat Implement FSFE REUSE for golang files (#21840) 2 years ago
backport-locales.go Try to catch more broken translations (#23867) 1 year ago
code-batch-process.go Clean some legacy files and move some build files (#23699) 1 year ago
generate-bindata.go Change use of Walk to WalkDir to improve disk performance (#22462) 1 year ago
generate-emoji.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 1 year ago
generate-gitignores.go Remove legacy `+build:` constraint (#19582) 2 years ago
generate-go-licenses.go Replace placeholders in licenses (#24354) 1 year ago
generate-images.js Update JS dependencies and eslint (#22190) 2 years ago
generate-licenses.go Remove deprecated licenses (#20222) 2 years ago
generate-svg.js Keep (add if not existing) xmlns attribute for generated SVG images (#23410) 1 year ago
gocovmerge.go Implement FSFE REUSE for golang files (#21840) 2 years ago
test-echo.go Clean some legacy files and move some build files (#23699) 1 year ago
test-env-check.sh Prepare and check test env during CI (#17725) 3 years ago
test-env-prepare.sh Prepare and check test env during CI (#17725) 3 years ago
update-locales.sh Clarify Gitea/Crowdin locale behaviors, add tests for LocaleStore, fix some strings with semicolons (#23819) 1 year ago
watch.sh Clean some legacy files and move some build files (#23699) 1 year ago