]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- gen-indexes with skipping nothing-to-do stage
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 23 Oct 2007 06:14:51 +0000 (06:14 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 23 Oct 2007 06:14:51 +0000 (06:14 +0000)
Changed files:
    shell/gen-indexes.sh -> 1.1

shell/gen-indexes.sh [new file with mode: 0755]

diff --git a/shell/gen-indexes.sh b/shell/gen-indexes.sh
new file mode 100755 (executable)
index 0000000..6e6cf38
--- /dev/null
@@ -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
This page took 0.036688 seconds and 4 git commands to generate.