]> git.corax.cc Git - toolbox/commitdiff
toolbox: Fix target of toolbox.sh symlink
authorMatthias Kruk <m@m10k.eu>
Sat, 3 Apr 2021 04:40:08 +0000 (13:40 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 3 Apr 2021 04:40:08 +0000 (13:40 +0900)
The symlink to toolbox.sh points to the absolute path of the file in the
Debian buildroot, which is an invalid location in an installed system.
This commit fixes the symlink to point to the location of the installed
file.

Makefile

index f1e474f0eee694115c0f3441f031d98111b63728..1d779a7b09e85d2dc0cd90ff44cbb9430e28007f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ install:
        find $(DESTDIR)/$(PREFIX)/share/toolbox -type d -exec chmod 755 {} \;
        find $(DESTDIR)/$(PREFIX)/share/toolbox -type f -exec chmod 644 {} \;
        chmod -R 755 $(DESTDIR)/$(PREFIX)/share/toolbox
-       ln -sf $(DESTDIR)/$(PREFIX)/share/toolbox/toolbox.sh $(DESTDIR)/$(PREFIX)/bin/toolbox.sh
+       ln -sf $(PREFIX)/share/toolbox/toolbox.sh $(DESTDIR)/$(PREFIX)/bin/toolbox.sh
 
 uninstall:
        rm $(DESTDIR)/$(PREFIX)/bin/toolbox.sh