# packnlf

## Description

`paknlf` is a tool to collect all specified files referenced by a `.nlf` file as relative paths and output them as a ZIP file.

## Using the Library

### Start Command

    % packnlf sample.nlf

Reads the contents of the nlf file specified by `sample.nlf`. Outputs the referenced files and a sample.nlf file with relative paths for all referenced files to the `package` directory.
Also, the contents of the `package` directory are compressed in ZIP format and created as `package-yymmdd-hhmm.zip`.
Be aware that all referenced files will be copied to the `package` directory regardless of whether they have absolute or relative paths.

Example of nlf file conversion

nlf file data before conversion.

> `#NLF --- NitroROM List File
> T,"d:/home/NitroSDK/build/demos/os/heap-1"
> V,1.1
> H,"bin/ARM9-TS/Debug/main_header.sbin","bin/ARM9-TS/Debug/main_files.sbin",0
> 9,"bin/ARM9-TS/Debug/main.nef","bin/ARM9-TS/Debug/main.sbin","*","bin/ARM9-TS/Debug/main_defs.sbin","*"
> 7,"D:/home/NitroSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.nef","D:/home/NitroSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.sbin","*","D:/home/NitroSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub_defs.sbin","*"
> # File Images
> F,00000000,00004000,00,ffff,ffff,"bin/ARM9-TS/Debug/main_header.sbin","*",43ccc89b,512,1
> F,00004000,00013324,00,ffff,0008,"bin/ARM9-TS/Debug/main.sbin","*",43ccc89b,512,1
> F,00013400,0003d748,00,ffff,000c,"D:/home/NitroSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.sbin","*",43c36b6a,512,1
> F,0003d800,0003d809,00,ffff,0010,"bin/ARM9-TS/Debug/main_files.sbin","*",43ccc89b,512,1
> F,0003da00,0003da00,00,ffff,0012,"*FILEALLOC","*",00000000,512,1
> F,0003da00,0003e240,00,ffff,001a,"D:/home/NitroSDK/include/nitro/specfiles/default.bnr","*",43c5bca2,512,1
> #`

nlf file data after conversion.

> `#NLF --- NitroROM List File
> T,"."
> V,1.1
> H,"./bin/ARM9-TS/Debug/main_header.sbin","./bin/ARM9-TS/Debug/main_files.sbin",0
> 9,"./bin/ARM9-TS/Debug/main.nef","./bin/ARM9-TS/Debug/main.sbin","*","./bin/ARM9-TS/Debug/main_defs.sbin","*"
> 7,"./D_/home/NitroSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.nef","./D_/home/NitroSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.sbin","*","./D_/home/NitroSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub_defs.sbin","*"
> # File Images
> F,00000000,00004000,00,ffff,ffff,"./bin/ARM9-TS/Debug/main_header.sbin","*",43ccc89b,512,1
> F,00004000,00013324,00,ffff,0008,"./bin/ARM9-TS/Debug/main.sbin","*",43ccc89b,512,1
> F,00013400,0003d748,00,ffff,000c,"./D_/home/NitroSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.sbin","*",43c36b6a,512,1
> F,0003d800,0003d809,00,ffff,0010,"./bin/ARM9-TS/Debug/main_files.sbin","*",43ccc89b,512,1
> F,0003da00,0003da00,00,ffff,0012,"*FILEALLOC","*",00000000,512,1
> F,0003da00,0003e240,00,ffff,001a,"./D_/home/NitroSDK/include/nitro/specfiles/default.bnr","*",43c5bca2,512,1
> #`

## Location

`$NitroSDK/tools/bin/packnlf`

## See Also

## Revision History

01/17/2006 Initial version.

CONFIDENTIAL