Warning, /sdk/kde-dev-scripts/completions/zsh/_makeobj is written in an unsupported language. File is not indexed.

0001 #compdef makeobj
0002 
0003 local index olddir dir subdir
0004 
0005 olddir=$PWD
0006 index="$words[(I)-[fCI]]"
0007 if ! ((index)); then
0008   if [ ! -f Makefile ]; then
0009     if [ -n "$OBJ_SUBDIR" ]; then
0010       dir=$PWD
0011       subdir=.
0012       while [ -n "$dir" -a $dir != '/' -a ! -f $dir/$OBJ_SUBDIR/$subdir/Makefile ]; do
0013         dir=$dir(:h)
0014         subdir=$dir(:t)/$subdir
0015       done
0016       if -f $dir/$OBJ_SUBDIR/$subdir/Makefile; then
0017         cd $dir/$OBJ_SUBDIR/$subdir
0018       fi
0019     elif [ -n "$OBJ_REPLACEMENT" ]; then
0020       dir=$(echo $PWD | sed -e "$OBJ_REPLACEMENT")
0021       if [ -f $dir/Makefile ]; then
0022         cd $dir
0023       fi
0024     fi
0025   fi
0026 fi
0027 
0028 _make
0029 
0030 cd $olddir