summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-01-03 09:09:21 +0100
committerJudd Vinet <judd@archlinux.org>2005-01-03 09:09:21 +0100
commitf468dc2d2519a54667393c6b18b50ef17c4e27a5 (patch)
tree9a4ec7abf1bd86b5bd9a489023f301131a92f1fd
parente11622c10fa4b75d264c78c668282f5b21e6f158 (diff)
downloaddbscripts-f468dc2d2519a54667393c6b18b50ef17c4e27a5.tar.gz
dbscripts-f468dc2d2519a54667393c6b18b50ef17c4e27a5.tar.xz
re-arranged /bin/find options to get rid of an annoying warning message
-rwxr-xr-xgenpkglist4
-rwxr-xr-xpkgdb6
-rwxr-xr-xpkgdb14
3 files changed, 7 insertions, 7 deletions
diff --git a/genpkglist b/genpkglist
index ec50488..08111ce 100755
--- a/genpkglist
+++ b/genpkglist
@@ -1,5 +1,5 @@
#!/bin/bash
-# $Id: genpkglist,v 1.11 2004/07/03 20:28:11 judd Exp $
+# $Id: genpkglist,v 1.12 2005/01/03 08:09:21 judd Exp $
#
# genpkglist
@@ -12,7 +12,7 @@ pkgfile="`pwd`/packages.txt"
repodir=$1
rm -f $pkgfile
-for category in `find * -type d -maxdepth 0 | grep -v CVS`; do
+for category in `find * -maxdepth 0 -type d | grep -v CVS`; do
cd $category
for pkg in `/bin/ls`; do
cd $pkg
diff --git a/pkgdb b/pkgdb
index d2cf510..e73c455 100755
--- a/pkgdb
+++ b/pkgdb
@@ -1,5 +1,5 @@
#!/bin/bash
-# $Id: pkgdb,v 1.14 2004/05/06 02:27:40 judd Exp $
+# $Id: pkgdb,v 1.15 2005/01/03 08:09:21 judd Exp $
tl=`pwd`
@@ -63,7 +63,7 @@ process() {
oldrel=`echo $pkg | awk '{print $4}'`
[ "$pkgname" = "" ] && return;
cd $tl
- pkgdir=`find . -type d -name "$pkgname" -maxdepth 2 -mindepth 1 | head -1`
+ pkgdir=`find . -maxdepth 2 -mindepth 1 -type d -name "$pkgname" | head -1`
if [ "$pkgdir" = "" ]; then
deletepkg
else
@@ -118,7 +118,7 @@ cat $TMPFILE | ( \
echo " -> Scanning for New packages..."
cd $tl
-for category in `find . -type d -maxdepth 1 | grep -v CVS | grep -v "^extra" | grep -v "^unstable"`; do
+for category in `find . -maxdepth 1 -type d | grep -v CVS | grep -v "^extra" | grep -v "^unstable"`; do
category=`echo $category | sed 's|./||'`
if [ "$category" = "." ]; then
continue
diff --git a/pkgdb1 b/pkgdb1
index b32f0db..dd4e5d3 100755
--- a/pkgdb1
+++ b/pkgdb1
@@ -1,5 +1,5 @@
#!/bin/bash
-# $Id: pkgdb1,v 1.2 2004/07/02 17:50:32 judd Exp $
+# $Id: pkgdb1,v 1.3 2005/01/03 08:11:19 judd Exp $
tl=`pwd`
@@ -11,7 +11,7 @@ if [ "$repoid" = "" ]; then
fi
cd $tl
-for category in `find . -type d -maxdepth 1 | grep -v CVS | grep -v "^extra" | grep -v "^unstable"`; do
+for category in `find . -maxdepth 1 -type d | grep -v CVS | grep -v "^extra" | grep -v "^unstable"`; do
category=`echo $category | sed 's|./||'`
if [ "$category" = "." ]; then
continue