* src/tools/update-copyright: Allow execution from other repositories. We use this for `freetype-demos`.
diff --git a/src/tools/update-copyright b/src/tools/update-copyright
index 4a8bf9b..674823c 100755
--- a/src/tools/update-copyright
+++ b/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