* src/tools/update-copyright: Allow execution from other repositories.

We use this for `freetype-demos`.
This commit is contained in:
Werner Lemberg 2023-01-17 18:48:54 +01:00
parent 65f8523706
commit f80be4e959
1 changed files with 2 additions and 2 deletions

View File

@ -4,10 +4,10 @@
# taking care of exceptions stored in file `no-copyright'.
topdir=`git rev-parse --show-toplevel`
toolsdir=$topdir/src/tools
toolsdir=`dirname $0`
git ls-files --full-name $topdir \
| sed 's|^|../../|' \
| sed "s|^|$topdir/|" \
| grep -vFf $toolsdir/no-copyright \
| xargs $toolsdir/update-copyright-year