Skip to content

Commit 1473c69

Browse files
committed
Avoiding sync of unused files for HTML render
1 parent 3822aaa commit 1473c69

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.1

fra/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ OS = $(shell sh -c 'uname -s 2>/dev/null || echo Unknown')
6363
ifeq ($(OS),Darwin) # Mac OS X
6464
COPY_CMD = cp -P
6565
else # Linux
66-
COPY_CMD = cp --parent
66+
COPY_CMD = rsync -vrP --exclude "*.psd" --exclude "*.pdf" --exclude "*.bkp" --exclude "*.dtmp" --exclude "*.drawio" --ignore-missing-args
6767
endif
6868

6969
MKDIR_CMD = mkdir -p
@@ -96,9 +96,9 @@ $(BUILD)/epub/$(OUTPUT_FILENAME).epub: $(EPUB_DEPENDENCIES)
9696

9797
$(BUILD)/html/index.html: $(HTML_DEPENDENCIES)
9898
$(ECHO_BUILDING)
99-
$(MKDIR_CMD) $(BUILD)/html
99+
$(MKDIR_CMD) $(BUILD)/html/images
100100
$(CONTENT) | $(CONTENT_FILTERS) | $(PANDOC_COMMAND) $(ARGS) $(HTML_ARGS) -o $@
101-
$(COPY_CMD) $(IMAGES) $(BUILD)/html/
101+
$(COPY_CMD) $(IMAGES) $(BUILD)/html/images/
102102
$(ECHO_BUILT)
103103

104104
$(BUILD)/pdf/$(OUTPUT_FILENAME).pdf: $(PDF_DEPENDENCIES)

fra/images/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
*.pdf
1+
*.pdf
2+
cover_linkedin_post.*

0 commit comments

Comments
 (0)