logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://anongit.hacktivis.me/git/overlay.git/

gettext-0.3.2-autopoint_mkdir.patch (1495B)


  1. From b756522f75009e01f79804bba1d1866434446faf Mon Sep 17 00:00:00 2001
  2. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  3. Date: Fri, 24 May 2024 23:45:19 +0200
  4. Subject: [PATCH 2/2] autopoint.in: Use `mkdir -p` instead of `install -D`
  5. Unlike BusyBox, coreutils, and OpenBSD where `install -D` takes no argument,
  6. in NetBSD and FreeBSD `install -D` takes a `destdir` argument.
  7. I picked `mkdir -p` in preference of `install -d` simply because mkdir is a defined standard.
  8. ---
  9. src/autopoint.in | 8 +++++---
  10. 1 file changed, 5 insertions(+), 3 deletions(-)
  11. diff --git a/src/autopoint.in b/src/autopoint.in
  12. index c88e1c9..ef44810 100755
  13. --- a/src/autopoint.in
  14. +++ b/src/autopoint.in
  15. @@ -35,15 +35,17 @@ do
  16. if [ "${line##*po/Makefile.in}" != "$line" ]; then
  17. poprefix="${line##*'['}"
  18. poprefix="${poprefix%%po/Makefile.in*}"
  19. - install -D -m 644 @datadir@/data/autopoint_Makefile.in "./${poprefix}/po/Makefile.in.in"
  20. + mkdir -p "./${poprefix}/po"
  21. + install -m 644 @datadir@/data/autopoint_Makefile.in "./${poprefix}/po/Makefile.in.in"
  22. fi
  23. done < "configure.ac"
  24. touch "./${dirprefix}/config.rpath" ABOUT-NLS
  25. +mkdir -p intl po
  26. for i in intl/Makefile.in po/Makefile.in.in ; do
  27. - install -D -m 644 @datadir@/data/autopoint_Makefile.in "$i"
  28. + install -m 644 @datadir@/data/autopoint_Makefile.in "$i"
  29. done
  30. -install -D -m 644 @datadir@/data/Makevars.template po/Makevars.template
  31. +install -m 644 @datadir@/data/Makevars.template po/Makevars.template
  32. true
  33. --
  34. 2.44.1