[r-cran-aer] 03/03: Close to working attempt to remove final cruft. Needs some more thinking why last sed works on command line but not in this script ...

Andreas Tille tille at debian.org
Sun Nov 12 13:37:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository r-cran-aer.

commit c022836bf40439eeaed6618695939b26c83d6dc9
Author: Andreas Tille <tille at debian.org>
Date:   Sun Nov 12 14:36:46 2017 +0100

    Close to working attempt to remove final cruft.  Needs some more thinking why last sed works on command line but not in this script ...
---
 debian/README.source        | 23 +++++++++++++----------
 debian/create_README.source |  2 +-
 2 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/debian/README.source b/debian/README.source
index c9d69db..d079291 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -25,7 +25,8 @@ Documented: man/BondYield.Rd
 Files: data/CASchools.rda
 Documented: man/CASchools.Rd
   The dataset contains data on test performance, school 
-  characteristics and student demographic backgrounds for school districts in California.} 
+  characteristics and student demographic backgrounds for school districts in California.
+:::::
   A data frame containing 420 observations on 14 variables.
 
 Files: data/CPS1985.rda
@@ -107,9 +108,11 @@ Documented: man/EquationCitations.Rd
 
 Files: data/Equipment.rda
 Documented: man/Equipment.Rd
-  Statewide data on transportation equipment manufacturing for 25 US states.}
+  Statewide data on transportation equipment manufacturing for 25 US states.
+:::::
   A data frame containing 25 observations on 4 variables.
-    }
+    
+:::::
 
 Files: data/EuroEnergy.rda
 Documented: man/EuroEnergy.Rd
@@ -152,11 +155,10 @@ Documented: man/GoldSilver.Rd
 
 Files: data/GrowthDJ.rda
 Documented: man/GrowthDJ.Rd
-  Growth regression data as provided by Durlauf & Johnson (1995).}
-  A data frame containing 121 observations on 10 variables.
-   from 1960 to 1985 (in percent).}
-   from 1960 to 1985 (in percent).}   
-   and write in 1960 (in percent).}  
+  Growth regression data as provided by Durlauf & Johnson (1995).
+:::::
+   and write in 1960 (in percent).
+:::::
 
 Files: data/GrowthSW.rda
 Documented: man/GrowthSW.Rd
@@ -174,7 +176,8 @@ Documented: man/Guns.Rd
 
 Files: data/HMDA.rda
 Documented: man/HMDA.Rd
-  Cross-section data on the Home Mortgage Disclosure Act (HMDA).}
+  Cross-section data on the Home Mortgage Disclosure Act (HMDA).
+:::::
   A data frame containing 2,380 observations on 14 variables.
 
 Files: data/HealthInsurance.rda
@@ -476,4 +479,4 @@ Documented: man/Fertilit*.Rd
   Online complements to Stock, J.H. and Watson, M.W. (2007):
   "Introduction to Econometrics", 2nd ed. Boston: Addison Wesley.
 
- -- Andreas Tille <tille at debian.org>  Sun, 12 Nov 2017 14:21:44 +0100
+ -- Andreas Tille <tille at debian.org>  Sun, 12 Nov 2017 14:36:05 +0100
diff --git a/debian/create_README.source b/debian/create_README.source
index f993ab9..fb4944a 100755
--- a/debian/create_README.source
+++ b/debian/create_README.source
@@ -14,7 +14,7 @@ for rda in ../data/*.rda ; do
      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 | \
-         perl -p -e 's/\cM//g' | grep -v '^ *$' | sed '/^ \+\\/d'
+         perl -p -e 's/\cM//g' | grep -v '^ *$' | sed -e '/^ \+\\/d' -e 's/} *$/\n:::::/' | sed -e '/^:::::/ { N; N; N; N; d; }'
      echo ""
   fi
 done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-aer.git



More information about the debian-science-commits mailing list