explain makeInfoURL
svn path=/configurations/trunk/tud/; revision=11399
Martin Bravenboer committed
Mar 31, 2008 at 21:43 UTC
437448c2ec4d8aaff5b33b9fc73bacd803ac5044
1 file changed
+24
-19
supervisor/strategoxt/jobs.nix
+24
-19
@@ -14,26 +14,22 @@ let easy = (import ./easy-job.nix) attrs;
14
baseline =
15
import ./baseline.nix;
16
17
- /*
18
-
19
- The makeEasyJob function accepts an argument
20
- 'makeInfoURL'. makeInfoURL is a function that given a package
21
- specification returns a URL to a release-info.xml file. This
22
- file provides the buildfarm with information about available
23
- source tarballs and RPMs for this package.
24
-
25
- The default makeInfoURL always uses the latest -unstable
26
- release of a package. You only need to specify your own
27
- makeInfoURL if you want a different behaviour.
28
-
29
- Some useful makeInfoURL variants are defined here. A common
30
- example of this is 'usingBaseline'. This makeInfoURL variant
31
- uses baseline releases for aterm, sdf2-bundle, and
32
- strategoxt. The URLs of the baseline are specified in
33
- 'baseline.nix'.
34
-
35
- */
17
+ # The makeEasyJob function accepts an argument
18
+ # 'makeInfoURL'. makeInfoURL is a function that given a package
19
+ # specification returns a URL to a release-info.xml file. This
20
+ # file provides the buildfarm with information about available
21
+ # source tarballs and RPMs for this package.
22
+
23
+ # The default makeInfoURL always uses the latest -unstable release
24
+ # of a package. You only need to specify your own makeInfoURL if
25
+ # you want a different behaviour. Some useful makeInfoURL variants
26
+ # are defined here.
27
makeInfoURL = {
28
+
29
+ # A common example of makeInfoURL is 'usingBaseline'. This
30
+ # makeInfoURL variant uses baseline releases for aterm,
31
+ # sdf2-bundle, and strategoxt. The URLs of the baseline are
32
+ # specified in 'baseline.nix'.
33
usingBaseline = spec :
34
let packageName = reflect.packageName spec;
35
in if packageName == "aterm" then
@@ -47,6 +43,15 @@ let easy = (import ./easy-job.nix) attrs;
43
else
44
infoInput "http://buildfarm.st.ewi.tudelft.nl/releases/strategoxt2/${packageName}/${packageName}-unstable/";
45
46
+ # Stratego/XT uses a branch of the ATerm library. For the
47
+ # Meta-Environment packages to built against this branch, and
48
+ # against other releases that have been built using this branch,
49
+ # we use this makeInfoURL function, which attaches
50
+ # '-with-aterm64' to package names.
51
+
52
+ # This function is not required for Stratego/XT packages, since
53
+ # these are all built using with this branch of the ATerm
54
+ # library.
55
withATerm64 = spec :
56
let packageName = reflect.packageName spec;
57
in if packageName == "aterm" then