Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 207360
Collapse All | Expand All

(-)luarocks-0.4.orig/configure (-18 / +11 lines)
Lines 100-125 Link Here
100
fi
100
fi
101
101
102
find_program() {
102
find_program() {
103
   path="$PATH"
103
   local prog="$1"
104
   item="`echo "$path" | sed 's/\([^:]*\):.*/\1/'`"
104
   local oifs="$IFS"
105
   path="`echo "$path" | sed -n 's/[^:]*::*\(.*\)/\1/p'`"
105
   IFS=:
106
   found="no"
106
   set $PATH
107
   while [ "$item" ]
107
   IFS="$oifs"
108
   do
108
   while [ $# -gt 0 ]; do
109
      if [ -e "$item/$1" ]
109
      if [ -e "$1/$prog" ]; then
110
      then
110
         echo "$1"
111
         found="yes"
111
         return
112
         break
113
      fi
112
      fi
114
      item="`echo "$path" | sed 's/\([^:]*\):.*/\1/'`"
113
      shift
115
      path="`echo "$pat[5;5~[5;5~h" | sed -n 's/[^:]*::*\(.*\)/\1/p'`"
116
   done
114
   done
117
   if [ "$found" = "yes" ]
115
   return 1
118
   then
119
      echo "$item"
120
   else
121
      echo ""
122
   fi
123
}
116
}
124
117
125
if [ "$LUA_SUFFIX_SET" != "yes" ]
118
if [ "$LUA_SUFFIX_SET" != "yes" ]

Return to bug 207360