oksh.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. commit 2e3b7a715793bbb9fe857b37ffaad44b076e3e12
  2. Author: orbea <orbea@fredslev.dk>
  3. Date: Sat Oct 20 19:54:17 2018 -0700
  4. Makefile: Support a custom binary name.
  5. diff --git a/Makefile b/Makefile
  6. index 6b96f38..707ab5e 100644
  7. --- a/Makefile
  8. +++ b/Makefile
  9. @@ -3,6 +3,7 @@ PREFIX = $(PREFIX)
  10. else
  11. PREFIX = /usr
  12. endif
  13. +BINNAM = pdksh
  14. BINDIR = $(DESTDIR)/bin
  15. MANDIR = $(DESTDIR)$(PREFIX)/man
  16. TMP ?= /tmp
  17. @@ -33,14 +34,14 @@ all: $(PROG)
  18. check test:
  19. /usr/bin/perl tests/th -s tests -p ./ksh -T $(TMP) \
  20. - -C pdksh,sh,ksh,posix,posix-upu
  21. + -C $(BINNAM),sh,ksh,posix,posix-upu
  22. install:
  23. install -m755 -d $(BINDIR)
  24. - install -m755 --strip --no-target-directory ksh $(BINDIR)/pdksh
  25. + install -m755 --strip --no-target-directory ksh $(BINDIR)/$(BINNAM)
  26. install -m755 -d $(MANDIR)/man1
  27. - install -m644 --no-target-directory ksh.1 $(MANDIR)/man1/pdksh.1
  28. - install -m644 --no-target-directory sh.1 $(MANDIR)/man1/pdksh-sh.1
  29. + install -m644 --no-target-directory ksh.1 $(MANDIR)/man1/$(BINNAM).1
  30. + install -m644 --no-target-directory sh.1 $(MANDIR)/man1/$(BINNAM)-sh.1
  31. clean:
  32. rm -f $(OBJS) $(PROG)