github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/misc/dist/darwin/scripts/postinstall (about)

     1  #!/bin/bash
     2  
     3  GOROOT=/usr/local/go
     4  
     5  echo "Fixing permissions"
     6  cd $GOROOT
     7  find . -exec chmod ugo+r \{\} \;
     8  find bin -exec chmod ugo+rx \{\} \;
     9  find . -type d -exec chmod ugo+rx \{\} \;
    10  chmod o-w .
    11  
    12  echo "Installing miscellaneous files:"
    13  XCODE_MISC_DIR="/Library/Application Support/Developer/Shared/Xcode/Specifications/"
    14  if [ -d "$XCODE_MISC_DIR" ]; then
    15  	echo "  XCode"
    16  	cp $GOROOT/misc/xcode/* $XCODE_MISC_DIR
    17  fi
    18