Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Squeeze and Compressing /Developer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Squeeze and Compressing /Developer
Authored by: thinkyhead on Aug 04, '10 10:57:02AM
There's a menu bar add-on called Squeeze which does HFS compression on folders in the background. But Squeeze won't compress anything in the /Developer folder. To get around this limitation and save some space in /Developer paste the following shell script into a file called dev-compress.sh ...
#!/bin/bash
#
# dev-compress.sh
# HFS compress most of /Developer
#

cd /Developer
# cd /Xcode4 ;# for xcode 4 beta

for DIR in Applications Documentation Examples Extras Library Platforms SDKs usr
do
  echo Compressing $DIR...
  mv $DIR $DIR.orig
  ditto --hfsCompression $DIR.orig $DIR
  rm -rf $DIR.orig
done
... then prep and execute...
chmod ug+x dev-compress.sh
sudo dev-compress.sh
After a few months I have seen no adverse effects on using XCode 3 or XCode 4 with these folders compressed.
---
|
| slur was here
|


[ Reply to This | # ]