(dist): Resolve `..' in file names.

2000-08-01  Andreas Schwab  <schwab@suse.de>

        * Make-dist (dist): Resolve `..' in file names.
This commit is contained in:
Andreas Jaeger 2000-08-01 12:16:52 +00:00
parent 8a958cd23f
commit db54bbfb42
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-08-01 Andreas Schwab <schwab@suse.de>
* Make-dist (dist): Resolve `..' in file names.
2000-08-01 Andreas Jaeger <aj@suse.de> 2000-08-01 Andreas Jaeger <aj@suse.de>
* stdio-common/Makefile (distribute): Remove removed files, add * stdio-common/Makefile (distribute): Remove removed files, add

View File

@ -166,7 +166,9 @@ dist: $(..)$(tardir) $(+tardeps)
@cd ..; if test -f dist.tar; then c=u; else c=c; fi; \ @cd ..; if test -f dist.tar; then c=u; else c=c; fi; \
$(+cmdecho) "cd ..; tar $${c}h$(verbose)f dist.tar ..."; \ $(+cmdecho) "cd ..; tar $${c}h$(verbose)f dist.tar ..."; \
tar $${c}h$(verbose)f dist.tar \ tar $${c}h$(verbose)f dist.tar \
$(addprefix $(tardir)/$(subdir)/,$(filter-out $<,$^)) $(addprefix $(tardir)/$(subdir)/,$(filter-out $< ../%,$^)) \
$(addprefix $(tardir)/,\
$(patsubst ../%,%,$(filter-out $<,$(filter ../%,$^))))
else # Parent makefile. else # Parent makefile.