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 ""
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 ; }
+ grep -q Unnamed $git/description && { echo -n $i "Setting.. "; echo $b > $git/description ; }
done
echo ""
}
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.. ";
}
missing_gitweb
-fill_descriptions $(ls *.git)
-upload_archives $(ls *.git)
+args="$@"
+[[ -z "$args" ]] && args=$(ls -d *.git)
+fill_descriptions $args
+upload_archives $args