if (fname.match(/package\\/) != null)
should be
if (fname.match(/package\//) != null)
Still my package directory is still in my release and contains the file
package.rel.xml. This file does not seem to be part of the manifest files.
Is there any way to solve this?
----------------------------------------------------------------------
From : Patrick Geremia <p-geremia@ti.com>
Date : Thu Sep 08 2011 18:17:31 GMT+0200 (CET)
> Can't seem to get my release script to work.
>
> Here from my package.bld
>
> var srcRel = pkg.addRelease (pkgName + "_src");
> var relScriptDir = xdc.getPackageBase("azcom.scripts");
> ....
> ....
> srcRel.attrs.relScript = relScriptDir + "/src.rel";
> ....
> ....
>
> And here is my src.rel file.
>
> var manifest = xdc.useModule('xdc.bld.Manifest');
> var files = [];
>
> print("manifest");
> for (var i = 0; i < manifest.files.length; i++)
> {
> var fname = manifest.files[i];
> if (fname.match(/package\\/) != null)
> {
> /* omit */
> }
> else
> {
> /* add everything that's not handled above */
> files.push(fname);
> }
> }
>
> /* include ONLY those files named in the files array */
> manifest.files = files;
>
>
> The release still contains all the "package/" files.Am I missing anything?
> Still my package directory is still in my release and contains the file
> package.rel.xml. This file does not seem to be part of the manifest files.
>
> Is there any way to solve this?
>
Unfortunately it is not currently possible. This file is added after
the release script runs. It is the last and only operation performed on
the release archive after the files specified by the release script are
archived.
----------------------------------------------------------------------
From : dave russo <d-russo@ti.com>
Date : Thu Sep 15 2011 02:03:54 GMT+0200 (CET)
>
>
> On 9/8/2011 9:45 AM, Patrick Geremia wrote:
>
>> Still my package directory is still in my release and contains the file
>> package.rel.xml. This file does not seem to be part of the manifest
>> files.
>>
>> Is there any way to solve this?
>>
> Unfortunately it is not currently possible. This file is added after the
> release script runs. It is the last and only operation performed on the
> release archive after the files specified by the release script are
> archived.
>