Skip to content

Commit

Permalink
Simplify relative symlink conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
tom93 committed Jul 20, 2024
1 parent a0fd9fd commit d320b7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webapp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ install-domserver:
# Now change all relative symlinks in webapp/public to their correct paths
for link in $$(find $(DESTDIR)$(domserver_webappdir)/public/$$dir -maxdepth 2 -type l); do \
target=$$(readlink $$link) ; \
if echo $${target} | grep -q '\.\./vendor' ; then \
case $${target} in *../vendor*) \
rm $$link ; \
realtarget=$(domserver_webappdir)/vendor$$(echo $${target} | sed 's!^.*\.\./vendor!!') ; \
realtarget=$(domserver_webappdir)/vendor$${target#*../vendor} ; \
ln -s $$realtarget $$link ; \
fi \
esac \
done
$(INSTALL_DATA) -t $(DESTDIR)$(domserver_webappdir) phpunit.xml.dist .env

Expand All @@ -68,7 +68,7 @@ composer-dependencies-dev:
composer $(subst 1,-q,$(QUIET)) install --prefer-dist --no-scripts --no-plugins

composer-autoclean:
# Make sure we're running from a clean state:
# Make sure we're running from a clean state:
composer auto-scripts

maintainer-clean-l:
Expand Down

0 comments on commit d320b7e

Please sign in to comment.