pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

mcm-no_rsync-linux-6.5.4.patch (627B)


      1 --- linux-6.5.4.orig/Makefile	2023-09-21 22:27:15.022638091 +0200
      2 +++ linux-6.5.4/Makefile	2023-09-21 22:44:56.322635034 +0200
      3 @@ -1366,8 +1366,9 @@
      4  quiet_cmd_headers_install = INSTALL $(INSTALL_HDR_PATH)/include
      5        cmd_headers_install = \
      6  	mkdir -p $(INSTALL_HDR_PATH); \
      7 -	rsync -mrl --include='*/' --include='*\.h' --exclude='*' \
      8 -	usr/include $(INSTALL_HDR_PATH)
      9 +	env I=$(INSTALL_HDR_PATH) find usr/include -name '*.h' -exec sh -c \
     10 +	'for s in "$$@"; do d=$${I%/}/$${s\#usr/}; mkdir -p "$${d%/*}" || exit $$?; cp -Ppf "$$s" "$$d" || exit $$?; done' \
     11 +	'{}' +
     12  
     13  PHONY += headers_install
     14  headers_install: headers