summaryrefslogtreecommitdiffstats
path: root/needs-checking/cvs-take-patch
diff options
context:
space:
mode:
authorMartin Quinson <mquinson@debian.org>2003-01-30 17:11:00 +0000
committerMartin Quinson <mquinson@debian.org>2003-01-30 17:11:00 +0000
commita62fb9b3aa2cee7c5a5b5c3e14372faba01f383d (patch)
treef5759b9dd40f7813d3bd05bde37a87d279feccbf /needs-checking/cvs-take-patch
parentbaaf1091d9321bf4b8ed0f3e73cf4b47ca05463c (diff)
downloadquilt-a62fb9b3aa2cee7c5a5b5c3e14372faba01f383d.tar.gz
Remove useless oldies. Missing functionnalities needs to be reimplemented almost from the scratch due to the bunch of changes to the core since those scripts were written.
Diffstat (limited to 'needs-checking/cvs-take-patch')
-rwxr-xr-xneeds-checking/cvs-take-patch84
1 files changed, 0 insertions, 84 deletions
diff --git a/needs-checking/cvs-take-patch b/needs-checking/cvs-take-patch
deleted file mode 100755
index 4703e84..0000000
--- a/needs-checking/cvs-take-patch
+++ /dev/null
@@ -1,84 +0,0 @@
-#! /bin/bash
-
-# This script is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# See the COPYING and AUTHORS files for more details.
-
-doit()
-{
- echo $*
- $*
-}
-
-usage()
-{
- echo "Usage: cvs-take-patch patch_file_name"
- exit 1
-}
-
-#
-# Find the highest level directory in $1 which does not
-# contain the directory $2. Return it in $MISSING
-#
-highest_missing()
-{
- START_DIR="$1"
- NAME="$2"
- MISSING=""
- WHERE=$(dirname "$START_DIR")
- PREV_WHERE=$START_DIR
- while [ x"$WHERE" != x"$PREV_WHERE" ]
- do
- WHERE="$PREV_WHERE"
- if [ ! -d "$WHERE"/"$NAME" ]
- then
- MISSING="$WHERE"
- fi
- PREV_WHERE=$(dirname "$WHERE")
- done
- echo highest_missing returns $MISSING
-}
-
-#
-# Add all new directries to CVS, top-down
-# $1: name of a directory
-# $2: name of the CVS directory
-#
-add_cvs_dirs()
-{
- MISSING=foo
- while [ "$MISSING" != "" ]
- do
- highest_missing $1 $2
- if [ x"$MISSING" != "x" ]
- then
- if [ ! -d "$MISSING"/"$2" ]
- then
- doit cvs add $MISSING
- fi
- fi
- done
-}
-
-PATCHFILE=$1
-
-REMOVEDFILES=$(removed-by-patch $PATCHFILE)
-if [ "$REMOVEDFILES" != "" ]
-then
- doit cvs remove $REMOVEDFILES
-fi
-
-NEWFILES=$(added-by-patch $PATCHFILE)
-for i in $NEWFILES
-do
- DIRNAME=$(dirname $i)
- echo "Looking at $DIRNAME"
- add_cvs_dirs $DIRNAME CVS
-done
-
-if [ "$NEWFILES" != "" ]
-then
- doit cvs add $NEWFILES
-fi