[med-svn] [Git][med-team/community/helper-scripts][master] Some docs have lower case extendion .rd

Andreas Tille gitlab at salsa.debian.org
Fri Mar 9 22:45:17 UTC 2018


Andreas Tille pushed to branch master at Debian Med / community / helper-scripts


Commits:
f00a4195 by Andreas Tille at 2018-03-09T23:44:53+01:00
Some docs have lower case extendion .rd

- - - - -


1 changed file:

- create_README.source


Changes:

=====================================
create_README.source
=====================================
--- a/create_README.source
+++ b/create_README.source
@@ -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
 }
 



View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/f00a41957a16fad3bff583d774584bccd4c7def1

---
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/f00a41957a16fad3bff583d774584bccd4c7def1
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-med-commit/attachments/20180309/99cbcb8b/attachment-0001.html>


More information about the debian-med-commit mailing list