Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
Fixing UGLIFYCSS check and directory creation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ozten committed Feb 1, 2012
1 parent c896354 commit 3520fe6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/compress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ ! -x "$UGLIFY" ]; then
fi

UGLIFYCSS=`which uglifycss 2> /dev/null`
if [ ! -x "$UGLIFY" ]; then
if [ ! -x "$UGLIFYCSS" ]; then
echo "uglifycss not found in your path. Have you npm installed lately?"
exit 1
fi
Expand Down Expand Up @@ -62,6 +62,7 @@ echo "generating for the following locales:"
echo $locales

for locale in $locales; do
mkdir -p $BUILD_PATH/$locale
mkdir -p $BUILD_PATH/../i18n/$locale
# Touch as the trigger locale doesn't really exist
touch $BUILD_PATH/../i18n/${locale}/client.json
Expand Down Expand Up @@ -92,7 +93,7 @@ echo ''

cd $PRODUCTION_PATH

pwd
pwd
# minify the JS
$UGLIFY < $BUILD_PATH/include.uncompressed.js > include.js
for locale in $locales; do
Expand All @@ -106,4 +107,3 @@ $UGLIFY < $BUILD_PATH/communication_iframe.uncompressed.js > communication_ifram
# minify the CSS
$UGLIFYCSS $BUILD_PATH/browserid.uncompressed.css > browserid.css
$UGLIFYCSS $BUILD_PATH/dialog.uncompressed.css > dialog.css

0 comments on commit 3520fe6

Please sign in to comment.