diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 1999-03-18 09:21:43 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 1999-03-18 09:21:43 +0000 |
commit | f4970515691df62a87d1d538e466e41cd7fc2018 (patch) | |
tree | 160842ca7462f71f03e1da2c07561076f6d16650 /gnu/usr.bin/cvs/contrib/cvscheck.sh | |
parent | 0008866e589b5dd29f5332c9bc0e208ba10a7772 (diff) |
This commit was manufactured by cvs2svn to create tagvendor/misc-GNU/cvs/1.10
'cvs-vendor-v1_10'.
Notes
Notes:
svn path=/vendor/cvs/dist/; revision=44852
svn path=/vendor/cvs/1.10/; revision=44854; tag=vendor/misc-GNU/cvs/1.10
Diffstat (limited to 'gnu/usr.bin/cvs/contrib/cvscheck.sh')
-rw-r--r-- | gnu/usr.bin/cvs/contrib/cvscheck.sh | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/gnu/usr.bin/cvs/contrib/cvscheck.sh b/gnu/usr.bin/cvs/contrib/cvscheck.sh deleted file mode 100644 index 96dba6e1f87e..000000000000 --- a/gnu/usr.bin/cvs/contrib/cvscheck.sh +++ /dev/null @@ -1,84 +0,0 @@ -#! /bin/sh -# $Id: cvscheck.sh,v 1.1 1995/07/10 02:26:29 kfogel Exp $ -# -# cvscheck - identify files added, changed, or removed -# in CVS working directory -# -# Contributed by Lowell Skoog <fluke!lowell@uunet.uu.net> -# -# This program should be run in a working directory that has been -# checked out using CVS. It identifies files that have been added, -# changed, or removed in the working directory, but not "cvs -# committed". It also determines whether the files have been "cvs -# added" or "cvs removed". For directories, it is only practical to -# determine whether they have been added. - -name=cvscheck -changes=0 - -# If we can't run CVS commands in this directory -cvs status . > /dev/null 2>&1 -if [ $? != 0 ] ; then - - # Bail out - echo "$name: there is no version here; bailing out" 1>&2 - exit 1 -fi - -# Identify files added to working directory -for file in .* * ; do - - # Skip '.' and '..' - if [ $file = '.' -o $file = '..' ] ; then - continue - fi - - # If a regular file - if [ -f $file ] ; then - if cvs status $file | grep -s '^From:[ ]*New file' ; then - echo "file added: $file - not CVS committed" - changes=`expr $changes + 1` - elif cvs status $file | grep -s '^From:[ ]*no entry for' ; then - echo "file added: $file - not CVS added, not CVS committed" - changes=`expr $changes + 1` - fi - - # Else if a directory - elif [ -d $file -a $file != CVS.adm ] ; then - - # Move into it - cd $file - - # If CVS commands don't work inside - cvs status . > /dev/null 2>&1 - if [ $? != 0 ] ; then - echo "directory added: $file - not CVS added" - changes=`expr $changes + 1` - fi - - # Move back up - cd .. - fi -done - -# Identify changed files -changedfiles=`cvs diff | egrep '^diff' | awk '{print $3}'` -for file in $changedfiles ; do - echo "file changed: $file - not CVS committed" - changes=`expr $changes + 1` -done - -# Identify files removed from working directory -removedfiles=`cvs status | egrep '^File:[ ]*no file' | awk '{print $4}'` - -# Determine whether each file has been cvs removed -for file in $removedfiles ; do - if cvs status $file | grep -s '^From:[ ]*-' ; then - echo "file removed: $file - not CVS committed" - else - echo "file removed: $file - not CVS removed, not CVS committed" - fi - changes=`expr $changes + 1` -done - -exit $changes |