Installation will fail if DESTDIR is used
We have
install -D -m 0644 $(builddir)/*.otf ${DESTDIR}/${fontpath}/
in our Makefile.
By default, DESTDIR
is empty, and hence ${DESTDIR}/${fontpath}/
resolves to //usr/share/fonts/opentype/malayalam
. However, //usr
gets resolved as /usr
and we don't see an issue.
However, if we have a value for DESTDIR, say /media/myfolder
, the instruction will try to install to /media/myfolder//usr/share/fonts/opentype/malayalam
. The double slashes in there is problematic.
We can just change it to
install -D -m 0644 $(builddir)/*.otf ${DESTDIR}${fontpath}/
and fix it. WDYT @santhoshtr ?
Edited by Balasankar 'Balu' C