File: create_README.source

package info (click to toggle)
r-cran-evd 2.3-6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,156 kB
  • sloc: ansic: 2,980; sh: 22; makefile: 9
file content (26 lines) | stat: -rwxr-xr-x 1,004 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
cat <<EOT
Explanation for binary files inside source package according to
  http://lists.debian.org/debian-devel/2013/09/msg00332.html

EOT

for rda in ../data/*.rda ; do
  if [ ! -e ../man/$(basename $rda .rda).Rd ] ; then
    >&2 echo "Verify documentation for $rda manually"
  else
     if ! basename $rda | grep -q "^Fertility" ; then # Fertility is done manually below
        echo "Files: data/$(basename $rda)"
        echo "Documented: man/$(basename $rda .rda).Rd"
        sed -e '0,/^\\title{/d' -e '/^}/,$d' -e 's/^\\description{//' -e 's/^\([^ ]\)/  \1/' ../man/$(basename $rda .rda).Rd | \
           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; }'
        echo ""
     fi
  fi
done

cat <<EOT
 -- Andreas Tille <tille@debian.org>  `date -R`
EOT