package conversion script

Gregory R. Warnes warnes@biostat.washington.edu
Tue, 23 Dec 1997 18:01:51 -0800 (PST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--8323328-376753582-882928911=:293
Content-Type: TEXT/PLAIN; charset=US-ASCII


Attached is a script, UPDATELIBS, that does much of the work of converting
R packages/librares to the current format.  I've just used it to add
packages from my R-0.50-alpha-4 to R-0.61 (from the debian package
Douglass Bates just made available). 

It takes a list of package names/directories as parameters and does the
following:
  - renames $PACKAGE/funs to $PACKAGE/R
  - converts $PACKAGE/man/* to $PACKAGE/man/*.Rd using $RHOME/etc/Rman2Rd
  - compiles any C and FORTRAN functions in $PACKAGE/src and
    $PACKAGE/src-c using R COMPILE
  - creates a shared library from the resulting objects using R SHLIB and
  - installs the package using R INSTALL

Its pretty simple-minded, and I've done little error-handling except to
assure that the appropriate $PACKAGE/* directories exist .  Finally,
UPDATELIBS assumes that it is run in the parent directory of the package
file(s), (ie $PACKAGE/.. ) . 

I hope someone finds it useful.

-Greg

--8323328-376753582-882928911=:293
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=UPDATELIBS
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.971223180151.293G@progress.biostat.washington.edu>
Content-Description: 

IyEvYmluL3NoDQojIFVQREFURUxJQlMgOiB1cGRhdGUgUiBsaWJyYXJpZXMg
dG8gbmV3IGZvcm1hdCBhbmQgaW5zdGFsbA0KIw0KUkhPTUU9YFIgUkhPTUVg
DQpleHBvcnQgUkhPTUUNClRISVNESVI9YHB3ZGANCmV4cG9ydCBUSElTRElS
DQoNCmZvciBpIGluICQqDQpkbw0KICAgaWYgWyAtZCAkaSBdDQogICB0aGVu
DQogCSMgZmlyc3QgcmVuYW1lICJmdW5zIiB0byAiUiINCglpZiBbIC1kICRp
L2Z1bnMgXQ0KCXRoZW4NCgkJbXYgJGkvZnVucyAkaS9SDQoJZmkNCgkNCgkj
IG5vdyBjb252ZXJ0IG9sZCBoZWxwIGZpbGVzDQoJaWYgWyAtZCAkaS9tYW4g
XQ0KCXRoZW4NCgkgICBjZCAkaS9tYW4NCgkgICBmb3IgcCBpbiBgbHNgDQoJ
ICAgZG8NCgkgICAgICAkUkhPTUUvZXRjL1JtYW4yUmQgJHAgPiAkcC5SZA0K
CSAgIGRvbmUNCgkgICBjZCAkVEhJU0RJUg0KCWZpDQoJDQoJIyBjb21waWxl
IGNvZGUgICh0cnkgYm90aCBzcmMgYW5kIHNyYy1jKQ0KCWlmIFsgLWQgJGkv
c3JjIF0NCgl0aGVuDQoJICAgY2QgJGkvc3JjDQoJICAgUiBDT01QSUxFICou
YyAqLmYNCgkgICBSIFNITElCICRpLnNvICoubw0KCSAgIGNkICRUSElTRElS
DQoJZmkNCg0KICAgICAgICBpZiBbIC1kICRpL3NyYyBdDQogICAgICAgIHRo
ZW4NCiAgICAgICAgICAgY2QgJGkvc3JjLWMNCiAgICAgICAgICAgUiBDT01Q
SUxFICouYyAqLmYNCiAgICAgICAgICAgUiBTSExJQiAkaS5zbyAqLm8NCiAg
ICAgICAgICAgY2QgJFRISVNESVINCglmaQ0KDQoJIyBub3cgaW5zdGFsbA0K
CVIgSU5TVEFMTCAkaQ0KCQ0KICAgZWxzZQ0KICAgICAgCWVjaG8gKiogbGli
cmFyeSBkaXJlY3RvcnkgJGkgTk9UIEZPVU5EISAqKg0KICAgZmkNCmRvbmUN
Cg==
--8323328-376753582-882928911=:293--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._