English:

The Free and Open Productivity Suite
New: Apache OpenOffice 4.1.1 released!

Definition of a Unixlink



The keyword for a link definition on Unix systems is Unixlink. A global ID of a unixlink should begin with gid_Unixlink . Unixlinks have to be assigned to modules in the definition block of the module. A typical definition of a procedure in the scp projects looks like:

#ifdef UNX
Unixlink gid_Unixlink_Zip
BIN_FILE_BODY;
Styles = ();
Dir = gid_Dir_Program;
Name = „ziplink“;
Target = „/usr/bin/zip“;
End
#endif

#ifdef UNX
Unixlink gid_Unixlink_Unzip
BIN_FILE_BODY;
Styles = ();
Dir = gid_Dir_Program;
Name = „unziplink“;
Target = „/usr/bin/unzip“;
End
#endif

Assignment at a Module:

Unixlinks = (gid_Unixlink_Zip, gid_Unixlink_Unzip);

The definition of a Unixlink is simple. The link has a name, some privileges (555 in the case of BIN_FILE_BODY), a directory, in which the link is created, and a target. In the first example above, a link named „ziplink“ is created in the program directory in the Office installation, that points to the file „/usr/bin/zip“.



Logo ApacheCon Europe 2014

Apache Feather

Copyright & License | Privacy | Website Feedback | Contact Us | Donate | Thanks

Apache, the Apache feather logo, and OpenOffice are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.