summaryrefslogtreecommitdiffstats
path: root/genpkglist
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-11-16 04:50:23 +0100
committerJudd Vinet <judd@archlinux.org>2003-11-16 04:50:23 +0100
commit14ed62289b8026a2a0487cf86c8b0a58c8b7c120 (patch)
tree8e0bc1ddc045b5d998c5d004ae150ecec2b29a5c /genpkglist
parenta1f715792fe75aba32625d998f8d6a27605704bc (diff)
downloaddbscripts-14ed62289b8026a2a0487cf86c8b0a58c8b7c120.tar.gz
dbscripts-14ed62289b8026a2a0487cf86c8b0a58c8b7c120.tar.xz
added Dale's dupe checking
Diffstat (limited to 'genpkglist')
-rwxr-xr-xgenpkglist10
1 files changed, 9 insertions, 1 deletions
diff --git a/genpkglist b/genpkglist
index c18c61f..83e16a6 100755
--- a/genpkglist
+++ b/genpkglist
@@ -1,5 +1,5 @@
#!/bin/bash
-# $Id: genpkglist,v 1.8 2003/10/12 18:41:26 judd Exp $
+# $Id: genpkglist,v 1.9 2003/11/16 03:50:23 judd Exp $
#
# genpkglist
@@ -29,3 +29,11 @@ for category in `find * -type d -maxdepth 0 | grep -v CVS`; do
cd ..
done
+DUPES=`ls -1 /home/ftp/$1 | rev | cut -d- -f 3- | rev | sort | uniq -c | egrep -v '^ 1' | awk '{print $2}'`
+
+if [ -n "$DUPES" ]; then
+ echo "Possible Dupes for $1 (please remove old versions)."
+ echo "Date Filename"
+ for dupe in $DUPES; do ls -l /home/ftp/$1/$dupe* | awk '{print $6" "$7" "$8" "$9}'; done
+fi
+