Whamcloud - gitweb
Branch: HEAD
authoradilger <adilger>
Wed, 23 Mar 2005 18:54:34 +0000 (18:54 +0000)
committeradilger <adilger>
Wed, 23 Mar 2005 18:54:34 +0000 (18:54 +0000)
Move clearpatches.sh and confirmpatches.sh into build from lustre-core.

build/clearpatches.sh [new file with mode: 0644]
build/confirmpatches.sh [new file with mode: 0644]

diff --git a/build/clearpatches.sh b/build/clearpatches.sh
new file mode 100644 (file)
index 0000000..de31352
--- /dev/null
@@ -0,0 +1,12 @@
+SERIESPATH=./series
+PATCHESPATH=./patches
+NOUSEPATH=./nousepatches
+
+#mkdir -p $NOUSEPATH
+for PATCH in `ls $PATCHESPATH | grep -v CVS` ; do
+       #echo $PATCH
+       if ! grep -rq $PATCH $SERIESPATH ; then
+               echo "$PATCH"
+               #mv $PATCHESPATH/$PATCH $NOUSEPATH
+       fi
+done
diff --git a/build/confirmpatches.sh b/build/confirmpatches.sh
new file mode 100644 (file)
index 0000000..18016c6
--- /dev/null
@@ -0,0 +1,11 @@
+SERIESPATH=./series
+PATCHESPATH=./patches
+for SERIES in `ls $SERIESPATH | grep -v CVS` ; do
+       #echo $SERIES
+       for PATCH in `cat $SERIESPATH/$SERIES`; do
+               #echo $PATCH
+               if [ ! `find $PATCHESPATH -name $PATCH` ]; then
+                       echo "$SERIESPATH/$SERIES: patch $PATCH was not found !"
+               fi
+       done
+done