File: create_README.source

package info (click to toggle)
r-cran-psych 1.8.12-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,964 kB
  • sloc: sh: 55; makefile: 2
file content (58 lines) | stat: -rwxr-xr-x 1,777 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh

cat <<EOT
Explanation for binary files inside source package according to
  http://lists.debian.org/debian-devel/2013/09/msg00332.html

EOT

# set -x
for rda in ../data/*.rda ; do
  rdoc="../man/$(basename $rda .rda).Rd"
  if echo $rdoc | grep -q "man/Harman" ; then
     rdoc="../man/Harman.Rd"
  fi
  if echo $rdoc | grep -q "man/bfi" ; then
     rdoc="../man/bfi.Rd"
  fi
  if echo $rdoc | grep -q "man/epi\.dictionary" ; then
     rdoc="../man/epi.Rd"
  fi
  if echo $rdoc | grep -q "man/spi" ; then
     rdoc="../man/spi.Rd"
  fi
  if echo $rdoc | grep -q "man/bock\." ; then
     rdoc="../man/bock.table.Rd"
  fi
  if [ ! -e $rdoc ] ; then
     rdoc=`echo $rdoc | tr 'A-Z' 'a-z' | sed 's/\.rd$/.Rd/'`
  fi
  if [ ! -e $rdoc ] ; then
     if ! basename $rda | grep -q -e "^Bechtoldt" -e "^Holzinger" -e "^Reise" -e "^Thurstone" ; then
        >&2 echo "Verify documentation for $rda manually"
     fi
  else
    echo "Files: data/$(basename $rda)"
    echo "Documented: `echo $rdoc | sed 's#^../##'`"
    DESC=`grep '\\\\title' $rdoc | sed -e 's#\\\\title{#  #' -e 's#} *$##'`
    if echo $DESC | grep -q "^ *$" ; then
      sed -e '0,/^\\title{/d' -e '/^}/,$d' -e 's/^\\description{//' -e 's/^\([^ ]\)/  \1/' $rdoc | \
           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; }'
    else
      echo "$DESC"
    fi
    echo ""
  fi
done

cat <<EOT
Files: data/Bechtoldt*.rda
       data/Holzinger*.rda
       data/Reise.rda
       data/Thurstone.rda
Documented: man/bifactor.Rd
  Seven data sets showing a bifactor solution

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