git @ Cat's Eye Technologies shelf / 7da1677
Set $? correctly after shelf_build. Chris Pressey 4 years ago
1 changed file(s) with 8 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
167167 }
168168
169169 shelf_build() {
170 CWD=`pwd`
170 cwd=`pwd`
171171
172172 dir=`_shelf_abspath_dir "$1"`
173173 cd $dir
188188 elif [ -e "Makefile" ]; then
189189 make
190190 elif [ -e "src/Makefile" ]; then
191 cd src
192 make
191 cd src && make
193192 else
194193 echo "No heuristic to build this source"
195 cd $CWD
196 return 1
197 fi
198
199 cd $CWD
200 return $?
194 fi
195
196 result=$?
197
198 cd $cwd
199 return $result
201200 }
202201
203202 shelf_pwd() {