5 gitwebfiles="git-favicon.png git-logo.png gitweb.cgi gitweb.css"
9 for file in $gitwebfiles; do gitwebpattern="${gitwebpattern}|$file" ; done
10 gitwebpattern=$(echo "$gitwebpattern" | sed -e 's,|,,')
12 function missing_gitweb () {
14 echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx missing in gitweb (for web)"
15 for i in $gitwebfiles; do
17 if [ ! -f ${i} ] ; then
18 echo "WARNING: IS MISSING.. " ;
25 function fill_descriptions () {
26 echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx checking descriptions "
28 # accept args like plcapi or plcapi.git
29 b=$(basename $arg .git)
32 grep Unnamed $git/description && { echo -n $i "Setting.. "; echo $b > $git/description ; }
37 function upload_archives () {
38 echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx checking configs for uploadarch "
40 # accept args like plcapi or plcapi.git
41 b=$(basename $arg .git)
44 if ! grep uploadarch $git/config ; then
45 echo -n $i "Setting.. ";
46 cat >> $git/config <<EOF
57 fill_descriptions $(ls *.git)
58 upload_archives $(ls *.git)