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

We use this for `freetype-demos`.
apodtele-master-patch-38950
Werner Lemberg 2 years ago
parent 65f8523706
commit f80be4e959
  1. 4
      src/tools/update-copyright

@ -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…
Cancel
Save