Mesa (7.11): mesa: Use --dereference to avoid symlinks in tarballs

Ian Romanick idr at kemper.freedesktop.org
Thu Jul 28 18:48:48 UTC 2011


Module: Mesa
Branch: 7.11
Commit: 0a7574f62c6c1e0db0de7a3c3b4a98ca222dcbd5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0a7574f62c6c1e0db0de7a3c3b4a98ca222dcbd5

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Mon Jul 25 19:47:25 2011 -0700

mesa: Use --dereference to avoid symlinks in tarballs

---

 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index cea0923..2af9374 100644
--- a/Makefile
+++ b/Makefile
@@ -481,13 +481,13 @@ rm_config: parsers
 	rm -f configs/autoconf
 
 $(LIB_NAME).tar: rm_config
-	cd .. ; tar -cf $(DIRECTORY)/$(LIB_NAME).tar $(LIB_FILES)
+	cd .. ; tar --dereference -cf $(DIRECTORY)/$(LIB_NAME).tar $(LIB_FILES)
 
 $(LIB_NAME).tar.gz: $(LIB_NAME).tar
 	gzip --stdout --best $(LIB_NAME).tar > $(LIB_NAME).tar.gz
 
 $(GLUT_NAME).tar:
-	cd .. ; tar -cf $(DIRECTORY)/$(GLUT_NAME).tar $(GLUT_FILES)
+	cd .. ; tar --dereference -cf $(DIRECTORY)/$(GLUT_NAME).tar $(GLUT_FILES)
 
 $(GLUT_NAME).tar.gz: $(GLUT_NAME).tar
 	gzip --stdout --best $(GLUT_NAME).tar > $(GLUT_NAME).tar.gz




More information about the mesa-commit mailing list