From d6b820fd5a1c40f789b371b8f86ccee25a89ea0d Mon Sep 17 00:00:00 2001 From: yparitcher Date: Thu, 9 Jul 2020 02:39:36 -0400 Subject: [PATCH] Do not link cache dir as it may already exist (#6358) use bash with extglob to not match one result closes koreader/koreader#6357 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 726216039..570806983 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ else cp -f $(KOR_BASE)/ev_replay.py $(INSTALL_DIR)/koreader/ @echo "[*] create symlink instead of copying files in development mode" cd $(INSTALL_DIR)/koreader && \ - ln -sf ../../$(KOR_BASE)/$(OUTPUT_DIR)/* . + bash -O extglob -c "ln -sf ../../$(KOR_BASE)/$(OUTPUT_DIR)/!(cache) ." @echo "[*] install front spec only for the emulator" cd $(INSTALL_DIR)/koreader/spec && test -e front || \ ln -sf ../../../../spec ./front