- for d in ${dirs[@]}; do
- cd $(readlink -f $d)/..
- [[ -e .git ]] || echo $d
- if [[ ${personalized[${d##*/}]} ]]; then
- echo "$pcategory" >.git/category
- fi
- f=(!(LICENSE|COPYING|README|.git))
- if [[ ${#f[@]} == 1 && ! -d $f ]]; then
- if [[ ! -x $f ]]; then
- if [[ $f == *-function ]]; then
- ${f%-function} --help | sed -n '2p' > .git/description
- else
- _git_desc_readme
- fi
- else
- ./$f --help | sed -n '2p' > .git/description
- fi
+ for d in ${dirs[@]}; do
+ echo $d
+ cd $(readlink -f $d)/..
+ [[ -e .git ]] || echo $d
+ if [[ ${personalized[${d##*/}]} ]]; then
+ echo "$pcategory" >.git/category
+ fi
+ f=(!(LICENSE|COPYING|README|.git))
+ if [[ ${#f[@]} == 1 && ! -d $f ]]; then
+ if [[ ! -x $f ]]; then
+ if [[ $f == *-function ]]; then
+ ${f%-function} --help | sed -n '2p' > .git/description