certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/scripts CreatePatchCVS.cmake


From: certi-cvs
Subject: [certi-cvs] certi/scripts CreatePatchCVS.cmake
Date: Fri, 14 Nov 2008 11:13:31 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      08/11/14 11:13:31

Modified files:
        scripts        : CreatePatchCVS.cmake 

Log message:
        Merged modification from tsp tree.
        EXECUTE_PROCESS seems to handle
        the argument of the command  in a different way as before.
        I'll have look at that later.
        Better check-in a working script.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/CreatePatchCVS.cmake?cvsroot=certi&r1=1.1&r2=1.2

Patches:
Index: CreatePatchCVS.cmake
===================================================================
RCS file: /sources/certi/certi/scripts/CreatePatchCVS.cmake,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CreatePatchCVS.cmake        20 Mar 2008 16:09:33 -0000      1.1
+++ CreatePatchCVS.cmake        14 Nov 2008 11:13:31 -0000      1.2
@@ -16,9 +16,13 @@
 MESSAGE(STATUS "CVS Patch:: Generating patch using CVS...")
 MESSAGE(STATUS "CVS Patch:: Using command     : ${CVS_COMMAND} 
${CVS_DIFF_ARGS}")
 MESSAGE(STATUS "CVS Patch:: Rooted at Workdir : ${WDIR}")
-EXECUTE_PROCESS(COMMAND ${CVS_COMMAND} ${CVS_DIFF_ARGS}
+EXECUTE_PROCESS(COMMAND ${CVS_COMMAND} diff -u
                 OUTPUT_FILE ${ODIR}/patch.diff
                 RESULT_VARIABLE PATCHOK
                 WORKING_DIRECTORY ${WDIR}
                 ERROR_QUIET)               
-MESSAGE(STATUS "CVS Patch:: Patch file is : ${ODIR}/patch.diff")              
\ No newline at end of file
+IF(PATCHOK)                
+    MESSAGE(STATUS "CVS Patch:: Patch file is : ${ODIR}/patch.diff")
+ELSE(PATCHOK)   
+    MESSAGE(SEND_ERROR "CVS Patch:: FAILED")
+ENDIF(PATCHOK)          
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]