Commit Graph

37 Commits

Author SHA1 Message Date
Matthew Flatt
70caf5f509 raco pkg create, raco setup: add support for built (source+binary) packages
This change removes `rendered-scribblings' as a recognized "info.rkt"
definition (which was added for binary packages, but now `scribblings'
serves both roles).

The `raco setup' changes involve support for moving pre-rendered
documentation into place (where "moving" may actually mean
leaving it in place but updating the "local-redirect.js" path),
but also allowing documentation to be re-rendered.
2013-05-24 14:55:39 -06:00
Matthew Flatt
6178f2312f add `setup/collects' and use it for ".dep" file paths
This change makes ".dep" files more portable (in exchange for some
extra path work at the point of reading or writing ".dep" files.)
2013-05-24 14:55:39 -06:00
Matthew Flatt
9888fac99e raco setup: move doc dependency and duplicate checking to database
This change makes document building --- and specially incremental
document building --- more scalable. The global duplicate-definition
check is handled by a database query, for example.
2012-11-23 20:07:49 -07:00
Robby Findler
51207a2f68 Revert "topologically sort collections based on the dependencies between"
This reverts commit 79c6a2b1e5.

Sorry--- I didn't mean to push this commit
2012-03-01 11:43:54 -06:00
Robby Findler
79c6a2b1e5 topologically sort collections based on the dependencies between
them and use that to order 'raco setup'

The dep-list.rkt file contains code that reads .dep files
and computes the topological sort; this result is expected
to be copied over into setup-unit.rkt
2012-03-01 11:41:00 -06:00
Matthew Flatt
14e0698602 raco setup: one more path simplifcation point
Closes PR 12355
2011-11-28 13:51:24 -07:00
Matthew Flatt
e03a70025f fix another raco setup path-normalization (especially for Windows) 2011-09-18 08:09:04 -06:00
Matthew Flatt
a7855e20a8 add `raco link'
includes a rewrite the "Module Basics" section of the Guide
2011-08-24 09:07:14 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Eli Barzilay
4da4a2759b New setup/path-to-relative' that supersedes unstable/dirs' and most of
`setup/private/path-utils'.

The API is a little different: instead of getting the alist and the
path, there's a curried function that gets the alist and produces a
function to do the substitutions.
2011-07-02 01:10:38 -04:00
Eli Barzilay
6b44974b42 Improvements around uses of the current `unstable/dirs', and
`setup/path-relativize'.

`setup/path-relativize' is freed from a bunch of things that were due to
historical baggage, but some remain.  (Also, update its docs.)
2011-07-02 01:10:38 -04:00
Robby Findler
3a5875857a fixed a bug Eli noticed 2010-09-10 06:59:49 -05:00
Matthew Flatt
804ff115e7 fix `raco setup' reported name for Windows 2010-08-07 19:19:08 -06:00
Robby Findler
e105d191b1 Adjusted 'raco setup' so that the arguments are collections (left setup-plt alone) 2010-06-21 16:58:32 -05:00
Matthew Flatt
32297601b6 use simple-form-path more consistently for path normalization
--- a reversal of opinion from my earlier commit; the problem
 with syntactic simplification is that it may not refer to the
 same file, due to soft links; given that true normalization is
 impossible, simplify-path and simple-form-path provide a good
 compromise between preserving paths as given and exanding
 soft links as neede
2010-06-03 17:23:14 -06:00
Matthew Flatt
7e08ef7064 fix mismatched path normalizations in `raco setup'
A mixture of filesystem-insensitive `simplify-path', filesystem-sensitive
 `simplify-path', and `normalize-path' was used in different parts
 of `raco setup'. This causes a mismatch, for example, when a Planet
 hard link uses a path that is a symlink.
 In general, I think filesystem-insensitive simplification (i.e., syntactic
 simplification) is the right choice for comparing paths, so that is now
 used consistently.
2010-06-03 13:58:46 -06:00
Matthew Flatt
0f8c152b6d drscheme manual -> drracket manual; speed up raco setup pre-bootstrap 2010-05-04 11:49:41 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Carl Eastlund
d03aed44fd * unstable/srcloc.ss
Added `update-source-location', which provides keyword-based functional update
for source location representations.

Removed automatic collection-relative printing for source locations.

* unstable/location.ss

Made `quote-srcloc' and its related forms all automatically use source locations
relative to collections and/or planet, where appropriate, and to compute
source locations dynamically if they cannot be made relative.

Removed #:module-source argument from `quote-srcloc'.

Changed `quote-module-path' and `quote-module-name' to use source file name
extensions.

Removed `quote-module-source'.  I'm not sure what the use case is for
generating a resolved module path that doesn't correspond to a real module.

* unstable/dirs.ss

Implemented `path->directory-relative-string' for rendering a path to a string
that is relative to one of a list of given directories, with associated
abbreviations for each.

* unstable/scribblings/unstable.scrbl
* unstable/scribblings/srcloc.scrbl
* unstable/scribblings/dirs.scrbl

Documented the above changes.

* scheme/contract/private/provide.ss
* scheme/contract/private/base.ss

Changed contract forms to always blame a module path where appropriate.

Removed use of #:module-source option for `quote-srcloc'.

* setup/private/path-utils.ss

Updated `path->name' to use more general `path->directory-relative-string'.

svn: r18816
2010-04-14 17:49:29 +00:00
Matthew Flatt
eab6803895 change sandbox to allow read from the planet directory; delay some path calculations in other libraries to avoid sandbox prohibitions (but the ones in Scribble seem like too much)
svn: r16122
2009-09-24 14:54:15 +00:00
Matthew Flatt
3ebbd56865 fix cm problem tracking reader dependencies; add 'reader' reader language
svn: r15907
2009-09-08 00:07:11 +00:00
Matthew Flatt
cc32f3eea2 fix problems with get-info use by setup-plt
svn: r15242
2009-06-23 13:26:07 +00:00
Eli Barzilay
e0bab0cea2 * Added setup/private/lib-roots as a place to decide what directory is
considered a library. For now, hacked with the collects and planet
  roots (and planet links), with a fixed number of directory sublevels
  from them.
* setup/private/omitted-paths is simplified by reusing this code to
  get the roots.
* drscheme/private/module-browser uses this to always show requires
  from the same library, even for lib or planet requires.

svn: r15058
2009-06-02 18:48:57 +00:00
Eli Barzilay
438ad9865a reformat, use hash-ref!
svn: r15044
2009-06-01 20:28:10 +00:00
Eli Barzilay
bb823bbb3b don't die on a ".../plt/collects" path
svn: r15043
2009-06-01 20:16:40 +00:00
Robby Findler
cde0dc2566 svn: r11843 2008-09-23 13:56:47 +00:00
Eli Barzilay
825a660254 deal with planet hard links
svn: r11352
2008-08-20 06:30:30 +00:00
Eli Barzilay
cdc45a3e64 refactored, and made the roots return the implicitly ignored directories still (so setup-plt doesnt try to compile .svn)
svn: r11350
2008-08-20 02:19:41 +00:00
Eli Barzilay
850af38cfe * Added `setup/private/omitted-paths' as a central point for getting
omitted paths -- including entries from parent directories
* This code automatically includes "compiled", ".*" and "doc" (unless
  in the main tree), which nicely unifies the pieces of code that
  duplicated this check (compiler/compiler-unit and setup/setup-unit).

svn: r11324
2008-08-19 10:28:22 +00:00
Eli Barzilay
36809f291e typo
svn: r10183
2008-06-06 19:46:56 +00:00
Eli Barzilay
05e530f443 Allow using `doc-path' for main docs only.
svn: r10181
2008-06-06 18:46:04 +00:00
Eli Barzilay
ae09de2fa2 avoid warnings for missing user docs
svn: r10149
2008-06-05 16:34:53 +00:00
Eli Barzilay
73f4a8dc74 minor printf bug, relative planet paths
svn: r10031
2008-05-30 07:03:01 +00:00
Eli Barzilay
b43b66ae37 * A more noticeable message for starting the doc build
* More paths relative to known places

svn: r10028
2008-05-30 02:32:49 +00:00
Eli Barzilay
8df91f2f10 improved setup-plt printouts
svn: r9996
2008-05-28 05:14:08 +00:00
Eli Barzilay
1c598fafc3 svn: r9894 2008-05-19 17:47:42 +00:00
Matthew Flatt
e35c94f91d clean out _loader compilation support; merge compiler library docs into mzc manual; improve mzscheme cmdline handling so that configuration options do not cancel defaults like -i and -u
svn: r8432
2008-01-27 14:20:42 +00:00