new layout
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 21 May 2010 16:40:57 +0000 (16:40 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 21 May 2010 16:40:57 +0000 (16:40 +0000)
scripts/git-check.sh

index 67b2a42..290a243 100755 (executable)
@@ -14,8 +14,10 @@ function missing_gitweb () {
     echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx missing in gitweb (for web)"
     for i in $gitwebfiles; do
        echo -n "$i "
-       if [ ! -f ${i} ] ; then
-           echo "WARNING: IS MISSING.. " ; 
+       if [ -f ${i} ] ; then
+           echo -n "OK "
+       else
+           echo -n "MISSING.. " ; 
        fi
     done
     echo ""
@@ -27,7 +29,7 @@ function fill_descriptions () {
     for arg in "$@" ; do
        # accept args like plcapi or plcapi.git
        b=$(basename $arg .git)
-       giti=${b}.git
+       git=${b}.git
        echo -n "$git "
        grep Unnamed $git/description && { echo -n $i "Setting.. "; echo $b > $git/description ; }
     done
@@ -39,7 +41,7 @@ function upload_archives () {
     for arg in "$@" ; do
        # accept args like plcapi or plcapi.git
        b=$(basename $arg .git)
-       giti=${b}.git
+       git=${b}.git
        echo -n "$git "
        if ! grep uploadarch $git/config ; then
            echo -n $i "Setting.. ";