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


Commits:
cac4162e by Andreas Tille at 2018-03-09T18:37:12+01:00
More sensible guess of documentation name

- - - - -
7b99f3db by Andreas Tille at 2018-03-09T19:07:27+01:00
Deal somehow with documentation in lower case file names

- - - - -


1 changed file:

- create_README.source


Changes:

=====================================
create_README.source
=====================================
--- a/create_README.source
+++ b/create_README.source
@@ -9,12 +9,19 @@ Explanation for binary files inside source package according 
to
 
 EOT
 
-for rda in `ls ../data/*.rda ../data/*.RData 2>/dev/null` ; do
-  rdoc="../man/$(basename $rda .rda)"
-  if [ ! -e ${rdoc}.Rd ] ; then
-    rdoc="../man/$(basename $rda .RData).Rd"
+GuessDocName () {
+  if [ ! -e $1.Rd ] ; then
+    echo $1 | sed 's/\.[RDArdat]\+$/.Rd/'
   else
-    rdoc=${rdoc}.Rd
+    echo $1.Rd
+  fi
+}
+
+for rda in `ls ../data/*.rda ../data/*.RData 2>/dev/null` ; do
+  rdoc=`GuessDocName "../man/$(basename $rda .rda)"`
+  if [ ! -e "$rdoc"  ] ; then
+    # try lower case doc name if nothing else was found
+    rdoc=`GuessDocName "../man/"$(basename $rda .rda | tr 'A-Z' 'a-z')`
   fi
   if [ ! -e "$rdoc"  ] ; then
     >&2 echo "Verify documentation for $rda manually"



View it on GitLab: 
https://salsa.debian.org/med-team/community/helper-scripts/compare/6578d7a19e018f64340e9ce1e3a41851d9af764e...7b99f3db4c8be2a23867c37eecd0edf62a0fc521

---
View it on GitLab: 
https://salsa.debian.org/med-team/community/helper-scripts/compare/6578d7a19e018f64340e9ce1e3a41851d9af764e...7b99f3db4c8be2a23867c37eecd0edf62a0fc521
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to