enyojs/g11n — pull request #5 by jooncheol (2013-10-26 14:42:58+00:00)
Title: fix deploy.sh to support BSD 'cp'

The cp command works different in the Mac OS X (BSD).
If source argument ends with '/', it will copy contents of source directory to
target directory.

e.g, If $f is 'base/format',
cp -r $SOURCE/source/$f/ $(dirname $TARGET/source/$f)
GNU cp will copy directory $SOURCE/source/base/format to $TARGET/source/base.
But BSD cp will copy $SOURCE/source/base/format/* to $TARGET/source/base.

So, current script should be changed from
cp -r $SOURCE/source/$f/ $(dirname $TARGET/source/$f);
to
cp -r $SOURCE/source/$f $(dirname $TARGET/source/$f);

This will work properly in both of Linux and Mac OS X (BSD).