Create a symlink with relative path
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/378
This commit is contained in:
parent
f614ec4d60
commit
5d954398d1
|
@ -109,14 +109,7 @@ README: $(srcdir)/README.in
|
||||||
cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) $(top_builddir)/conf.d/35-lang-normalize.conf
|
cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) $(top_builddir)/conf.d/35-lang-normalize.conf
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
mkdir -p $(DESTDIR)$(configdir)
|
$(PYTHON) $(srcdir)/link_confs.py $(templatedir) $(configdir) $(CONF_LINKS)
|
||||||
@(echo cd $(DESTDIR)$(configdir); \
|
|
||||||
cd $(DESTDIR)$(configdir); \
|
|
||||||
for i in $(CONF_LINKS); do \
|
|
||||||
echo $(RM) $$i";" ln -s $(templatedir)/$$i .; \
|
|
||||||
$(RM) $$i; \
|
|
||||||
ln -s $(templatedir)/$$i .; \
|
|
||||||
done)
|
|
||||||
uninstall-local:
|
uninstall-local:
|
||||||
@(echo cd $(DESTDIR)$(configdir); \
|
@(echo cd $(DESTDIR)$(configdir); \
|
||||||
cd $(DESTDIR)$(configdir); \
|
cd $(DESTDIR)$(configdir); \
|
||||||
|
|
|
@ -34,7 +34,7 @@ if __name__=='__main__':
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
os.symlink(src, dst)
|
os.symlink(os.path.relpath(src, start=args.confpath), dst)
|
||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
# Not supported on this version of Windows
|
# Not supported on this version of Windows
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue