Andreas Tille pushed to branch master at Debian Med / community / helper-scripts
Commits: 733d593a by Andreas Tille at 2018-03-11T17:31:33+01:00 create_README.source was moved to https://salsa.debian.org/r-pkg-team/maintenance-utilities - - - - - 1 changed file: - − create_README.source Changes: ===================================== create_README.source deleted ===================================== --- a/create_README.source +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh - -# you can use/adapt this script to create README.source for R packages -# featuring large amounts of binary data files - -cat <<EOT -Explanation for binary files inside source package according to - http://lists.debian.org/debian-devel/2013/09/msg00332.html - -EOT - -GuessDocName () { - 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 -} - -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" - else - echo "Files: data/$(basename $rda)" - echo $rdoc | sed 's#^\.\./#Documented: #' - grep '\\title' $rdoc | sed -e 's/^\\title{/ /' -e 's/ *} *$//' - echo "" - fi -done - -cat <<EOT - -- Andreas Tille <[email protected]> `date -R` -EOT - - -# sed -e '0,/^\\title{/d' -e '/^}/,$d' -e 's/^\\description{//' -e 's/^\([^ ]\)/ \1/' $rdoc | \ -# sed -e 's/\\code{\([^}]\+\)}/\1/g' | \ -# perl -p -e 's/\cM//g' | grep -v '^ *$' | sed -e '/^ \+\\/d' -e 's/} *$/\n#####/' | \ -# sed -e '/^#####/ { N; N; N; N; d; }' | sed -e '/^#####/ { N; N; N; d; }' | sed -e '/^#####/ { N; N; d; }' | sed -e '/^#####/ { N; d; }' View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/733d593adf1a151bff200ab085f7389ef08f12f5 --- View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/733d593adf1a151bff200ab085f7389ef08f12f5 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
