Author: damoxc
Revision: 5114
Log:
check to see if .build_data exists in check_file before running the grep
don't remove the concatenated files if the compression fails
Diff:
Modified: trunk/deluge/ui/web/js/build.sh
===================================================================
--- trunk/deluge/ui/web/js/build.sh 2009-04-21 09:08:05 UTC (rev 5113)
+++ trunk/deluge/ui/web/js/build.sh 2009-04-21 09:27:59 UTC (rev 5114)
@@ -9,6 +9,9 @@
}
check_file() {
+ # No build data is stored so return 1 since we can't make any guesses.
+ [ ! -e .build_data ] && return 1;
+
FILE=$1
LAST_BUILD=`grep $FILE .build_data`
if [ $? == 1 ]; then return 1; fi;
@@ -31,8 +34,7 @@
echo "Building deluge-yc.js"
cat $DELUGE_FILES > deluge-yc.js.tmp
- yuicompressor --type=js -o "deluge-yc.js" "deluge-yc.js.tmp"
- rm "deluge-yc.js.tmp"
+ yuicompressor --type=js -o "deluge-yc.js" "deluge-yc.js.tmp" && rm
"deluge-yc.js.tmp"
}
build_ext() {
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---