--- loncom/build/lpml.dtd 2001/05/15 17:16:17 1.3 +++ loncom/build/lpml.dtd 2001/06/20 12:32:54 1.8 @@ -29,40 +29,67 @@ -- > +<!ELEMENT categoryname (#PCDATA)> <!ELEMENT targetroot (#PCDATA)> <!ELEMENT sourceroot (#PCDATA)> <!ELEMENT target (#PCDATA)> +<!ATTLIST target + dist CDATA #REQUIRED + > <!ELEMENT source (#PCDATA)> <!ELEMENT targetdir (#PCDATA)> +<!ATTLIST targetdir + dist CDATA #REQUIRED + > <!ELEMENT sourcedir (#PCDATA)> <!ELEMENT glob (#PCDATA)> -<!ELEMENT distribution (#PCDATA)> <!ELEMENT build (#PCDATA)> + +<!-- +The trigger attribute of the build element is meant +to only have one of two possible values: + "always run", or + "run if dependencies change" + +Note that you must type this text exactly in for the +attribute value to be understood and processed correctly +by the lpml "make build" parser. +--> +<!ELEMENT lpml (file|category|fileglob|directory|rpm|link)+> +<!ATTLIST build> + trigger CDATA #REQUIRED +> <!ELEMENT dependencies (#PCDATA)> <!ELEMENT note (#PCDATA)> -<!ELEMENT category (chmod,chown,distribution?)> +<!ELEMENT category (chmod,chown)> <!ATTLIST category type CDATA #REQUIRED name CDATA #REQUIRED > <!ELEMENT chown (#PCDATA)> +<!ATTLIST chown + dist CDATA #REQUIRED + > <!ELEMENT chmod (#PCDATA)> -<!ELEMENT distribution (#PCDATA)> - -<!ELEMENT directory (targetdir,categoryname,description?)> -<!ATTLIST file +<!ATTLIST chmod dist CDATA #REQUIRED > -<!ELEMENT file (source,target,categoryname,description?,note?,build?)> -<!ATTLIST file +<!ELEMENT directory (targetdir,categoryname,description?)> +<!ATTLIST directory dist CDATA #REQUIRED > +<!ELEMENT file (source,target,categoryname,description?, + note?,build?,status?,dependencies?)> +<!ELEMENT link (source,target,categoryname,description?, + note?,build?,status?)> + <!ELEMENT fileglob (glob,sourcedir,targetdir,categoryname, - description?,distribution?)> + description?,filenames?)> +<!ELEMENT filenames (#PCDATA)> <!ELEMENT rpm (rpmSummary,rpmName,rpmVersion,rpmRelease,rpmVendor, rpmBuildRoot,rpmCopyright,rpmGroup,rpmSource,rpmAutoReqProv,