* src/tools/update-copyright: Allow execution from other repositories.
We use this for `freetype-demos`.
This commit is contained in:
parent
65f8523706
commit
f80be4e959
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue