Browse Source

no more needed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31951 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 17 years ago
parent
commit
d74157fea3
5 changed files with 0 additions and 3432 deletions
  1. 0 95
      tools/cvs.recursadd
  2. 0 39
      tools/cvs.remove
  3. 0 41
      tools/cvs.rename.dir
  4. 0 35
      tools/cvs.rename.file
  5. 0 3222
      tools/cvs2cl.pl

+ 0 - 95
tools/cvs.recursadd

@@ -1,95 +0,0 @@
-#!/bin/sh
-#
-# recursive CVS add/commit with comment
-#
-# written by Markus Neteler 3/2000
-# based on useful hints by Bernhard Reiter
-# $Id$
-
-# what to do in case of user break:
-function exitprocedure()
-{
- echo "User break!"
- exit 1
-}
-# shell check for user break (signal list: trap -l)
-trap "exitprocedure" 2 3 9 15
-
-
-# add files recursivly to CVS
-if [ $# = 0 -o "$1" = "" -o "$1" = "help" -o "$1" = "-h" -o "$1" = "-help" ]
-    then
-     echo "USAGE: cvs.r.add comment"
-     echo "  This command runs recursively within a directory tree"
-     echo "  'cvs add' and 'cvs commit' are called within the script."
-    else
-     comment=$1
-fi
-
-if [ ! "$comment" ]
-then
-   exit
-fi
-
-echo "Walking through the tree..., ignore CVS dirs and OBJ dirs"
-
-if test -d CVS
-then
- echo "CVS dir is already present. Please check that."
- exit 1
-fi
-
-#add the current directory
-current=`pwd |tr / ' '|wc -w`         # count the words in path
-current=`expr $current + 1`
-local_dir=`pwd| cut -d'/' -f$current` # get the name
-cd ..
-#-------------------------------------
-# insert the job here:
- currpwd=`pwd`
- echo "cvs add $local_dir [$currpwd]"
- cvs add $local_dir
-#-------------------------------------
-cd $local_dir
-
-echo "Adding the files in current directory to CVS (if any)..."
-files=`find . -type f -maxdepth 1`
-count=`echo $files |wc -w`
-if [ $count -gt 0 ]; then
-      cvs add $files
-      cvs ci -m"$comment" $files
-fi
-
-echo "Proceeding..."
-dirnames=`find . -type d |grep -v CVS |grep -v OBJ`
-for i in $dirnames ; do
-   pushd . >/dev/null
-   cd $i
-   # get the last directory name:
-   words=`echo $i |tr / ' '|wc -w`         # count the words
-   local_dir=`echo $i| cut -d'/' -f$words` # get the name
-   if [ $local_dir != "." ]; then          # don't work on current dir
-#-------------------------------------
-# insert the job here:
-   currpwd=`pwd`
-
-   echo "cvs add $local_dir [$currpwd]"
-   cd ..                                   # we were already inside
-   cvs add $local_dir
-   cd $local_dir                           # o.k. now jump into it
-
-   echo "Add the files in current directory to CVS (if any)..."
-   files=`find . -type f -maxdepth 1`
-   count=`echo $files |wc -w`
-   if [ $count -gt 0 ]; then
-    echo files found
-      cvs add $files
-      cvs ci -m"$comment" $files
-   fi
-   cd ..
-#-------------------------------------
-   popd >/dev/null
-   fi
-done
-
-echo "The End. You may check with cvs update"

+ 0 - 39
tools/cvs.remove

@@ -1,39 +0,0 @@
-#!/bin/sh
-#
-# cvs remove directory
-#
-# written by Markus Neteler 3/2000
-# $Id$
-
-if [ "$#" -lt 2 -o "$1" = "" -o "$1" = "help" -o "$1" = "-h" -o "$1" = "-help" ]
-    then
-     echo "USAGE: cvs.remove comment directory"
-     echo ""
-     echo "use command in parent directory and specify name and comment." 
-    else
-      dir=$2
-      comment=$1
-fi
-if [ ! "$dir" ]
-then
-   exit
-fi
-if [ ! "$comment" ]
-then
-   exit
-fi
-
-cd $dir
-if [ $? != 0 ]; then
-  echo ""
-  echo "ERROR! You mixed the parameter order or $dir does not exist!"
-  exit
-fi
-
-rm -f *
-cd ..
-cvs remove -R $dir
-cvs ci -m "$comment" $dir
-cvs update -P
-
-echo "Finish."

+ 0 - 41
tools/cvs.rename.dir

@@ -1,41 +0,0 @@
-#!/bin/sh
-#
-# cvs rename directories
-#
-# written by Markus Neteler 3/2000
-# $Id$
-
-if [ $# -lt 2 -o "$1" = "" -o "$1" = "help" -o "$1" = "-h" -o "$1" = "-help" ]
-    then
-     echo "USAGE: cvs.rename old_directory_name  new_directory_name"
-     echo ""
-     echo "use command in parent directory and specify old and new name." 
-    else
-      olddir=$1
-      newdir=$2
-fi
-if [ ! "$newdir" ]
-then
-   exit
-fi
-
-# here we go...
-if [ ! -d $newdir ]; then mkdir $newdir ; fi
-cvs add $newdir
-
-cd $olddir
-files=`find . -type f -maxdepth 1`
-for i in $files ; do
- mv $i ../$newdir
-done
-cvs rm *
-
-cd ../$newdir
-cvs add *
-cd ..
-cvs remove -R $olddir
-# work on all dirs:
-cvs ci -m "moved $olddir/ to $newdir/: renamed directory"
-cvs update -P
-
-echo "Finish."

+ 0 - 35
tools/cvs.rename.file

@@ -1,35 +0,0 @@
-#!/bin/sh
-#
-# cvs rename file
-#
-# written by Markus Neteler 5/2000
-# May 30, 2000
-
-if [ $# -lt 3 -o "$1" = "" -o "$1" = "help" -o "$1" = "-h" -o "$1" = "-help" ]
-    then
-     echo "USAGE: cvs.rename.file old_file_name  new_file_name  comment"
-     echo ""
-    else
-      oldfile=$1
-      newfile=$2
-      comment=$3
-fi
-if [ ! "$newfile" ]
-then
-   exit
-fi
-
-# here we go...
-if [ -f $newfile ]
-then
- echo "file $newfile already exists!"
- exit
-fi
-
-mv $oldfile $newfile
-cvs rm $oldfile
-cvs ci -m"$comment" $oldfile
-cvs add $newfile
-cvs ci -m"$comment" $newfile
-
-echo "Dont forget to change associated Gmakefiles"

File diff suppressed because it is too large
+ 0 - 3222
tools/cvs2cl.pl