Revision 1026

trunk/scripts/admb/admb (revision 1026)
176 176
done
177 177

  
178 178
if [[ "$tplobjs" == "" ]]; then
179
  CMD="adlink $d $g $r $s $objs"
179
  listobjs=
180
  for file in $nontpls
181
  do
182
    extension="${file#*.}"
183
    if [ "$extension" = "o" -o "$extension" = "obj" ]; then
184
      listobjs="$listobjs $file"
185
    else
186
      listobjs="$listobjs ${file%.*}.o"
187
    fi
188
  done
189

  
190
  CMD="adlink $d $g $r $s $listobjs"
180 191
  echo -e \\n\*\*\* $CMD
181 192
  eval $CMD
182
  declare -a amodel=( $nontpls )
193

  
194
  declare -a amodel=( $listobjs )
183 195
  m=${amodel[0]}
184 196
  m2=${m%.*}
197

  
185 198
  if [[ -z $dll ]]; then 
186 199
    if [[ ! -f $m2 ]]; then 
187 200
        echo -e "\\nError: Could not build $m2\\n"

Also available in: Unified diff