Commit f00a4195 authored by Andreas Tille's avatar Andreas Tille
Browse files

Some docs have lower case extendion .rd

parent 7b99f3db
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -10,10 +10,15 @@ Explanation for binary files inside source package according to
EOT

GuessDocName () {
  if [ ! -e $1.Rd ] ; then
    echo $1 | sed 's/\.[RDArdat]\+$/.Rd/'
  else
  if [ -e $1.Rd ] ; then
    echo $1.Rd
  else
    rdoc=`echo $1 | sed 's/\.[RDArdat]\+$/.Rd/'`
    if [ -e $rdoc ] ; then
      echo $rdoc
    else
      echo ${rdoc}.rd
    fi
  fi
}