[geeklog-cvs] tools: On a Mac, check that we don't ship any files that have xa...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Nov 7 06:58:08 EST 2009


changeset 44:ca95b928d283
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/tools/rev/ca95b928d283
user: Dirk Haun <dirk at haun-online.de>
date: Sat Nov 07 12:57:44 2009 +0100
description:
On a Mac, check that we don't ship any files that have xattr set (bug #0001021)

diffstat:

 ship/mkdist.sh |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r d70dcf7ba266 -r ca95b928d283 ship/mkdist.sh
--- a/ship/mkdist.sh	Sun Oct 11 19:15:09 2009 +0200
+++ b/ship/mkdist.sh	Sat Nov 07 12:57:44 2009 +0100
@@ -91,6 +91,17 @@
 find . -type f -name '.*' -exec rm \{\} \;
 #find . -name CVS -exec rm -r \{\} \; 2>/dev/null
 
+# if on a Mac, check that we don't have any of those pesky xattributes set
+xattr=`which xattr`
+if [ -n "$xattr" ]; then
+  xa=`xattr -r .`
+  if [ -n "$xa" ]; then
+    echo "xattr found:"
+    echo $xa
+    exit
+  fi
+fi
+
 find . -type f -exec chmod a-x \{\} \;
 chmod a+x emailgeeklogstories
 



More information about the geeklog-cvs mailing list