Skip to content

Commit

Permalink
Roll back slugignore changes here too.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Dec 14, 2012
1 parent ce2f80a commit 90cff16
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,5 @@ EOF

chmod +x boot.sh

# Normally slugignore and pruning .git/DS_Store are done in the slug compiler,
# but since the PHP buildpack moves everything out of $BUILD_DIR into
# www/ we can't rely on that implementation and need to duplicate it here.

if [ -r $BUILD_DIR/www/.slugignore ]; then
unset GIT_DIR
cd www
if [ "$(git ls-files -c -o -i --exclude-from=.slugignore)" != "" ]; then
echo "-----> Deleting files matching .slugignore patterns."
git ls-files -z -c -o -i --exclude-from=.slugignore | xargs -0 rm
fi
cd ..
fi

if [ -d $BUILD_DIR/www/.git ]; then
rm -rf $BUILD_DIR/www/.git
fi

if [ "$(find $BUILD_DIR -name .DS_Store -print0)" != "" ]; then
find $BUILD_DIR -name .DS_Store -print0 | xargs -0 rm
fi

# clean the cache
rm -rf $CACHE_DIR/*

0 comments on commit 90cff16

Please sign in to comment.