Return to diffscript CVS log | Up to [Pegasus] / pegasus |
File: [Pegasus] / pegasus / Attic / diffscript
(download)
Revision: 1.2, Wed Feb 27 20:21:57 2008 UTC (16 years, 4 months ago) by kumpf Branch: MAIN CVS Tags: TASK_PEP328_SOLARIS_NEVADA_PORT, TASK-PEP328_SOLARIS_NEVADA_PORT_v2-root, TASK-PEP328_SOLARIS_NEVADA_PORT_v2-branch, TASK-PEP328_SOLARIS_NEVADA_PORT-root, TASK-PEP328_SOLARIS_NEVADA_PORT-branch, TASK-PEP328_SOLARIS_IX86_CC_PORT-root, TASK-PEP328_SOLARIS_IX86_CC_PORT-branch-v2, TASK-PEP328_SOLARIS_IX86_CC_PORT-branch, TASK-PEP311_WSMan-root, TASK-PEP311_WSMan-branch, RELEASE_2_8_2-RC1, RELEASE_2_8_2, RELEASE_2_8_1-RC1, RELEASE_2_8_1, RELEASE_2_8_0_BETA, RELEASE_2_8_0-RC2, RELEASE_2_8_0-RC1, RELEASE_2_8_0-FC, RELEASE_2_8_0, RELEASE_2_8-root, RELEASE_2_8-branch, Makefile Changes since 1.1: +18 -0 lines BUG#: 3066 TITLE: Undocumented file, diffscript, in top level directory DESCRIPTION: Document the purpose and usage of diffscript. |
# # diffscript # # This script is used to compare the contents of repository directory trees. # It is used by the Testcimmof Makefile which builds one copy of the repository # with cimmofl and another with cimmof. The two repositories are expected to # have the same contents. # # Usage: diffscript repository-dir repository-subdir # # The repository-dir argument is the directory containing the two repositories # to compare. They are expected to be named "repository" and "repository.old". # the repository-subdir is a specific subdirectory to compare within the # repositories. The net effect is a comparison of these two directories: # # <repository-dir>/repository/<repository-subdir> # <repository-dir>/repository.old/<repository-subdir> echo "Comparing Repository files..." cd $1/repository/$2 rm -f repository.log retCode=0 for i in `find ./ -type f` do echo "Comparing " $i >> repository.log diff $i ../../../repository.old/$2/$i >> repository.log if [ $? -eq 1 ] ;then retCode=1 echo "Files are different" >> repository.log fi done if [ retCode -eq 1 ] ;then echo +++ Test failed +++ else echo +++ Test passed +++ fi
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |