pld-ftp-admin: shell/gen-indexes.sh (NEW) - gen-indexes with skipp...
glen
glen at pld-linux.org
Tue Oct 23 08:14:56 CEST 2007
Author: glen Date: Tue Oct 23 06:14:56 2007 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- gen-indexes with skipping nothing-to-do stage
---- Files affected:
pld-ftp-admin/shell:
gen-indexes.sh (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: pld-ftp-admin/shell/gen-indexes.sh
diff -u /dev/null pld-ftp-admin/shell/gen-indexes.sh:1.1
--- /dev/null Tue Oct 23 08:14:56 2007
+++ pld-ftp-admin/shell/gen-indexes.sh Tue Oct 23 08:14:51 2007
@@ -0,0 +1,17 @@
+#!/bin/sh
+trees=""
+treeroot=~/ftp/.tree
+
+for tree in "$@"; do
+ dir=$treeroot/$tree/SRPMS/.metadata
+ lastupdate=$dir/.lastupdate
+ if [ ! -f $lastupdate ]; then
+ touch $lastupdate # XXX race
+ trees="$trees $tree"
+ continue
+ fi
+done
+
+if [ "$trees" ]; then
+ echo ~/pld-ftp-admin/scripts/gen-indexes.py $trees
+fi
================================================================
More information about the pld-cvs-commit
mailing list