Miscellaneous CVS Scripts

Contents


cvsWhatsNew

Summary

Summarizes differences between your working copy and the repository (wraps and formats 'cvs -n update').

Sample


mzieg $ cvsWhatsNew.sh
You have not yet committed the following modifications:
M include/foo.h
M src/foo.cpp

Your copies of the following are out of date:
U include/Diag/diagMonitor.h
U include/Diag/diagOtherMsgs.h
U include/Diag/diagScnMsgs.h

You may have forgotten to add the following new files:
? doc/makefiles-howto.html
? include/bar.h

Source

cvsWhatsNew.sh

cvsFileTags

Summary

Lists every tag used on a file, or in a directory tree.

Sample


mzieg $ cvsFileTags.sh
All tags found in under current directory:

baseline
Branch-2002_11_16-Testing
Branch-2002_11_16-Testing-Merge-2003_01_21-1
Branch-2002_11_16-Testing-Merge-2003_01_21-2
Branch-2002_11_16-Testing-Merge-2003_01_23-01
from_lab-2003_02_25-merged-01
from_lab-2003_02_26-before
from_lab-2003_02_26-merged
import
Merged-Branch-2002_11_16-Testing-Merge-2003_01_21-1
Merged-Branch-2002_11_16-Testing-Merge-2003_01_21-2
Merged-Branch-2002_11_16-Testing-Merge-2003_01_23-01
misc-restructuring-2003_03_11-before
misc-restructuring-2003_04_11-after
misc-zieg-handoff-01
release-2002_08_09
release-2002_08_29
release-2002_09_06
release-2002_09_17
release-2003_01_24
to_lab-2003_02_25-init
to_lab-2003_02_26-01
to_lab-2003_03_01-01
to_lab-2003_03_02-01
to_lab-2003_03_02-02
to_lab-2003_04_24-01
ver-2_5-dev
ver-2_5-stable

mzieg $ cvsFileTags.sh Makefile
Makefile:
    misc-restructuring-2003_04_11-after
    misc-zieg-handoff-01
    to_lab-2003_04_24-01
    ver-2_5-dev
    ver-2_5-stable

Source

cvsFileTags.sh

cvsFind

Summary

Searches a file's revision history for a regular expression.

Sample

Say that I want to figure out when I (or someone else?!?) added the "read" command to the script 'foo.sh'...

mzieg $ cvsFind.sh foo.sh 'read'
revision 1.5.................MATCHED: 63: cat $TMP | while read LINE
revision 1.4.................MATCHED: 61: cat $TMP | while read LINE
revision 1.3.................no
revision 1.2.................no
revision 1.1.................no
    

Source

cvsFind.sh

cvsManifest

Summary

Produces an MD5-keyed manifest of a particular distribution/delivery.

Sample


mzieg $ cvsManifest.pl
PROJ/tools/cm/CollectREADMEs.pl     1.4   Mon Apr 14 15:14:09 2003  499679323567ee0eb677a60ad4508416
PROJ/tools/cm/DeWordHtml.pl         1.1   Tue Apr  8 22:28:07 2003  7291cf4d2a3adc9e795512ecc2452929
PROJ/tools/cm/DocReport.pl          1.2   Tue Apr  8 23:26:34 2003  2abe7985e311388af01d1c3ee6977188
PROJ/tools/cm/ExpandMarkings.pl     1.5   Mon Apr 21 17:09:16 2003  1fb873cf0f59b0c4fd6bde4e354991b6
PROJ/tools/cm/Makefile              1.1   Mon Apr 21 16:43:02 2003  609e8ee94d0e71c888cb065e266e4157
PROJ/tools/cm/NightlyCVSBackup.sh   1.1   Tue Apr  8 22:28:07 2003  15a745098ada19caaf85149cdf706542
PROJ/tools/cm/NightlyBuild.sh       1.2   Wed Apr  9 16:08:08 2003  ab752a670be68ef24c16073aef487348
PROJ/tools/cm/Pseudocode.pl         1.7   Wed Apr 23 14:07:15 2003  2e1a629947b7d805bf3f58fa1466afb3
PROJ/tools/cm/PseudocodeWrapper.pl  1.2   Wed Apr  9 19:08:11 2003  332fe3d0781fccfa23e2960fd878d5eb
PROJ/tools/cm/RebuildDocs.sh        1.10  Mon Apr 21 17:09:16 2003  d57fc150533d48d4ba82781ebb560c8b
PROJ/tools/cm/cdir                  1.1   Mon Apr 28 21:55:58 2003  2900768ad0aea29d472502a70fb9305b
PROJ/tools/cm/cvsFileTags.sh        1.1   Thu Apr 24 22:45:27 2003  3d11a75541f227f787f44089b61d2e6b
PROJ/tools/cm/cvsFind.sh            1.1   Thu Apr 24 22:45:27 2003  a2776fc22625d263d56fb5ea3e11865c
PROJ/tools/cm/cvsManifest.pl        1.2   Thu Apr 24 22:45:27 2003  d0877f78d3f11aab1ab1f27c1a3fa481
PROJ/tools/cm/cvsUpdate.pl          1.1   Thu Apr 24 22:45:27 2003  83325befce2ebc0ae22bd8a56a66dfca
PROJ/tools/cm/cvsWhatsNew.sh        1.1   Thu Apr 24 22:45:27 2003  5e69ec4f450a8c73484220d0a845862a
PROJ/tools/cm/cvsWhoWhatWhen.pl     1.10  Tue Apr 29 17:28:46 2003  0d46ee1765e49237fa2fb3624f12f894
PROJ/tools/cm/doxFunc.pl            1.1   Tue Apr  8 22:28:07 2003  3cf3879f2743d6ac71461e1209d75706
PROJ/tools/cm/doxHead.pl            1.1   Tue Apr  8 22:28:07 2003  6075debcdfd852a76eaad960cacd23e3
PROJ/tools/cm/doxIncl.pl            1.1   Tue Apr  8 22:28:07 2003  029f7bc81c4eeb0fbfd1049cdf99e87a
PROJ/tools/cm/doxStruct.pl          1.1   Tue Apr  8 22:28:07 2003  4372e8a8b75f1068e3fa93c37032059c
PROJ/tools/cm/findReferences.pl     1.1   Tue Apr  8 22:28:07 2003  67686b61b5231b716074ab60ac283fa3
PROJ/tools/cm/findToDo.pl           1.1   Tue Apr  8 22:28:07 2003  eba72322a175adc753b05b48761517fc

Source

cvsManifest.pl

Author

Mark Zieg <mark@zieg.com>