On a Mac, check that we don't ship any files that have xattr set (bug #0001021) HEAD
authorDirk Haun <dirk@haun-online.de>
Sat Nov 07 12:57:44 2009 +0100 (4 months ago)
branchHEAD
changeset 44ca95b928d283
parent 43d70dcf7ba266
child 4505ccab6cb14e
On a Mac, check that we don't ship any files that have xattr set (bug #0001021)
ship/mkdist.sh
     1.1 --- a/ship/mkdist.sh	Sun Oct 11 19:15:09 2009 +0200
     1.2 +++ b/ship/mkdist.sh	Sat Nov 07 12:57:44 2009 +0100
     1.3 @@ -91,6 +91,17 @@
     1.4  find . -type f -name '.*' -exec rm \{\} \;
     1.5  #find . -name CVS -exec rm -r \{\} \; 2>/dev/null
     1.6  
     1.7 +# if on a Mac, check that we don't have any of those pesky xattributes set
     1.8 +xattr=`which xattr`
     1.9 +if [ -n "$xattr" ]; then
    1.10 +  xa=`xattr -r .`
    1.11 +  if [ -n "$xa" ]; then
    1.12 +    echo "xattr found:"
    1.13 +    echo $xa
    1.14 +    exit
    1.15 +  fi
    1.16 +fi
    1.17 +
    1.18  find . -type f -exec chmod a-x \{\} \;
    1.19  chmod a+x emailgeeklogstories
    1.20