cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From za...@apache.org
Subject [2/5] git commit: update clean.bat
Date Tue, 29 Jul 2014 06:44:10 GMT
update clean.bat


Project: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/commit/b0d8e635
Tree: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/tree/b0d8e635
Diff: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/diff/b0d8e635

Branch: refs/heads/master
Commit: b0d8e635f4f43d39599d27f78ce1fcd10ddb0baf
Parents: ed4076c
Author: Willy Aguirre <marti1125@gmail.com>
Authored: Wed Jul 16 16:00:15 2014 -0500
Committer: Willy Aguirre <marti1125@gmail.com>
Committed: Wed Jul 16 16:00:15 2014 -0500

----------------------------------------------------------------------
 bin/templates/project/cordova/clean.bat | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/b0d8e635/bin/templates/project/cordova/clean.bat
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/clean.bat b/bin/templates/project/cordova/clean.bat
index 3e54a01..33b01c8 100644
--- a/bin/templates/project/cordova/clean.bat
+++ b/bin/templates/project/cordova/clean.bat
@@ -15,4 +15,13 @@
 :: specific language governing permissions and limitations
 :: under the License.
 
-ECHO Cleaning Firefoxos project
+@ECHO OFF
+SET script_path="%~dp0build"
+IF EXIST %script_path% (
+	RMDIR /S %script_path%
+	ECHO Cleaning Firefoxos project
+) ELSE (
+	ECHO.
+    ECHO ERROR: Could not find 'build' script in 'cordova' folder, aborting...>&2
+    EXIT /B 1
+)	


Mime
View raw message