Commit 1ef13c29 authored by Vít Starý Novotný's avatar Vít Starý Novotný
Browse files

Replaced `cp --parents` with `tar c | tar xvC` pipe in Makefile.

parent 923c191b
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -131,7 +131,7 @@ $(DISTARCHIVE): $(SOURCES) $(LATEXFILES) $(MAKES) $(TESTS) \
	$(EXAMPLES) $(VERSION)
	$(EXAMPLES) $(VERSION)
	DIR=`mktemp -d` && \
	DIR=`mktemp -d` && \
	cp --verbose $(TDSARCHIVE) "$$DIR" && \
	cp --verbose $(TDSARCHIVE) "$$DIR" && \
	cp --parents --verbose $^ "$$DIR" && \
	tar c $^ | tar xvC "$$DIR" && \
	(cd "$$DIR" && zip -r -v -nw $@ *) && \
	(cd "$$DIR" && zip -r -v -nw $@ *) && \
	mv "$$DIR"/$@ . && rm -rf "$$DIR"
	mv "$$DIR"/$@ . && rm -rf "$$DIR"


@@ -140,7 +140,7 @@ $(CTANARCHIVE): $(SOURCES) $(MAKES) $(TESTS) $(EXAMPLES) \
	$(MISCELLANEOUS) $(EPSLOGOS) $(DOCS) $(VERSION)
	$(MISCELLANEOUS) $(EPSLOGOS) $(DOCS) $(VERSION)
	DIR=`mktemp -d` && mkdir -p "$$DIR/fithesis" && \
	DIR=`mktemp -d` && mkdir -p "$$DIR/fithesis" && \
	cp --verbose $(TDSARCHIVE) "$$DIR" && \
	cp --verbose $(TDSARCHIVE) "$$DIR" && \
	cp --parents --verbose $^ "$$DIR/fithesis" && \
	tar c $^ | tar xvC "$$DIR/fithesis" && \
	printf '.PHONY: implode\nimplode:\n' > \
	printf '.PHONY: implode\nimplode:\n' > \
		"$$DIR/fithesis/example/mu/Makefile" && \
		"$$DIR/fithesis/example/mu/Makefile" && \
	(cd "$$DIR" && zip -r -v -nw $@ *) && \
	(cd "$$DIR" && zip -r -v -nw $@ *) && \
@@ -166,11 +166,11 @@ install-base:
	
	
	@# Class, locale, style and logo files
	@# Class, locale, style and logo files
	mkdir -p "$(to)/tex/latex/fithesis"
	mkdir -p "$(to)/tex/latex/fithesis"
	cp --parents --verbose $(LATEXFILES) "$(to)/tex/latex/fithesis"
	tar c $(LATEXFILES) | tar xvC "$(to)/tex/latex/fithesis"
	
	
	@# Source files
	@# Source files
	mkdir -p "$(to)/source/latex/fithesis"
	mkdir -p "$(to)/source/latex/fithesis"
	cp --parents --verbose $(SOURCES) "$(to)/source/latex/fithesis"
	tar c $(SOURCES) | tar xvC "$(to)/source/latex/fithesis"
	
	
	@# Rebuild the hash
	@# Rebuild the hash
	[ "$(nohash)" = "true" ] || texhash
	[ "$(nohash)" = "true" ] || texhash
@@ -189,7 +189,7 @@ install-docs:
	
	
	@# Documentation
	@# Documentation
	mkdir -p "$(to)/doc/latex/fithesis"
	mkdir -p "$(to)/doc/latex/fithesis"
	cp --parents --verbose $(DOCS) "$(to)/doc/latex/fithesis"
	tar c $(DOCS) | tar xvC "$(to)/doc/latex/fithesis"


	@# Rebuild the hash
	@# Rebuild the hash
	[ "$(nohash)" = "true" ] || texhash
	[ "$(nohash)" = "true" ] || texhash