Update of /var/cvs/contributions/CMSContainer/scripts
In directory james.mmbase.org:/tmp/cvs-serv25290/scripts
Modified Files:
cleanall.bat buildall.bat
Log Message:
add check for parent dirs
See also: http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/scripts
Index: cleanall.bat
===================================================================
RCS file: /var/cvs/contributions/CMSContainer/scripts/cleanall.bat,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- cleanall.bat 12 Dec 2006 09:38:21 -0000 1.1
+++ cleanall.bat 15 Feb 2008 09:41:30 -0000 1.2
@@ -2,4 +2,15 @@
call clean ..\cmsc
call clean ..\..\CMSContainer_Modules
call clean ..\..\CMSContainer_Portlets
-call clean ..\..\%1
\ No newline at end of file
+
+set APPLICATION=%1
+IF exist "%APPLICATION%" GOTO okAppName
+set APPLICATION=..\..\%1
+IF exist "%APPLICATION%" GOTO okAppName
+echo Could not find the application with name %~2
+GOTO end
+
+:okAppName
+ call clean %APPLICATION%
+
+:end
Index: buildall.bat
===================================================================
RCS file: /var/cvs/contributions/CMSContainer/scripts/buildall.bat,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- buildall.bat 12 Dec 2006 09:38:21 -0000 1.1
+++ buildall.bat 15 Feb 2008 09:41:30 -0000 1.2
@@ -1,2 +1,13 @@
@ECHO OFF
-call build build cmsc ..\..\CMSContainer_Modules ..\..\CMSContainer_Portlets
..\..\%1
\ No newline at end of file
+
+set APPLICATION=%1
+IF exist "%APPLICATION%" GOTO okAppName
+set APPLICATION=..\..\%1
+IF exist "%APPLICATION%" GOTO okAppName
+echo Could not find the application with name %~2
+GOTO end
+
+:okAppName
+ call build build cmsc ..\..\CMSContainer_Modules
..\..\CMSContainer_Portlets
+ call build build %APPLICATION%
+:end
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs