#!/bin/sh
pname="`basename $0`"
dires=

for arg ; do
    case "$arg" in
    -*)
        echo '${pname} usage:'
        echo "   ${pname} directory ... "
        exit 1
        ;;
    *)
        dires="$dires $arg"
        ;;
    esac
done

for pubdir in $dires ; do
    rm -f `find $pubdir -name '*~' -print` &
done
wait
for pubdir in $dires ; do
	find $pubdir -type d    -exec chmod a+rx {} \;  &
	find $pubdir -type f    -exec chmod a+r  {} \;  &
done
wait
exit 0
#end
ViewGit