From 331c90a8743207d69009961a6ea537034d86ff4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Sun, 12 Dec 2021 09:48:11 +0100 Subject: [PATCH] build: Copy files to dist / deploy / install with rsync. --- Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 96670dc5..7fb8d844 100644 --- a/Makefile.in +++ b/Makefile.in @@ -377,21 +377,21 @@ dist: $(DIST_TARGETS) all-dist dist_wineopenxr | $(DST_DIR) deploy: dist | $(filter-out dist deploy install redist,$(MAKECMDGOALS)) mkdir -p $(DEPLOY_DIR) && \ - cp -a $(DEPLOY_COPY_TARGETS) $(DEPLOY_DIR) && \ + rsync --delete -arx $(DEPLOY_COPY_TARGETS) $(DEPLOY_DIR) && \ tar -C $(DST_DIR) -c . > $(DEPLOY_DIR)/proton_dist.tar @echo "Created deployment archive at "$(DEPLOY_DIR)"/proton_dist.tar" install: dist | $(filter-out dist deploy install redist,$(MAKECMDGOALS)) if [ ! -d $(STEAM_DIR) ]; then echo >&2 "!! "$(STEAM_DIR)" does not exist, cannot install"; return 1; fi mkdir -p $(STEAM_DIR)/compatibilitytools.d/$(BUILD_NAME) - cp -rf --no-dereference --preserve=mode,links $(DST_BASE)/* $(STEAM_DIR)/compatibilitytools.d/$(BUILD_NAME) + rsync --delete -arx $(DST_BASE)/* $(STEAM_DIR)/compatibilitytools.d/$(BUILD_NAME) cp -f $(DIST_VERSION) $(STEAM_DIR)/compatibilitytools.d/$(BUILD_NAME)/dist/ @echo "Installed Proton to "$(STEAM_DIR)/compatibilitytools.d/$(BUILD_NAME) @echo "You may need to restart Steam to select this tool" redist: dist | $(filter-out dist deploy install redist,$(MAKECMDGOALS)) mkdir -p $(REDIST_DIR) - cp -a $(REDIST_COPY_TARGETS) $(REDIST_DIR) + rsync --delete -arx $(REDIST_COPY_TARGETS) $(REDIST_DIR) tar -C $(DST_DIR) -c . | gzip -c -1 > $(REDIST_DIR)/proton_dist.tar.gz @echo "Created redistribution tarball at "$(REDIST_DIR)"/proton_dist.tar.gz"