]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blob - shell/gen-indexes.sh
- gen-indexes with skipping nothing-to-do stage
[projects/pld-ftp-admin.git] / shell / gen-indexes.sh
1 #!/bin/sh
2 trees=""
3 treeroot=~/ftp/.tree
4
5 for tree in "$@"; do
6         dir=$treeroot/$tree/SRPMS/.metadata
7         lastupdate=$dir/.lastupdate
8         if [ ! -f $lastupdate ]; then
9                 touch $lastupdate # XXX race
10                 trees="$trees $tree"
11                 continue
12         fi
13 done
14
15 if [ "$trees" ]; then
16         echo ~/pld-ftp-admin/scripts/gen-indexes.py $trees
17 fi
This page took 0.027004 seconds and 3 git commands to generate.