7.4. General Package Commands

There are basically two things you can do which are grouped together in the general package command section: executing an arbitrary command in a package context and populating the package description file.

Figure 7-7. GUI Package Management General Commands



Executing a command in the package root directory . The possibility to execute commands in a package context is simply a convenience feature of ComPact, useful if you happen to have no command shell window for the package context open. You simply type the command into the text field and press the Action button. The results of the command execution are listed in the execute page, which is usually displayed in a browser window of its own. You can of course not use any interactive commands, since there is no way to provide input through the stdin channel. Executed commands are added to a history list, which is accessible through the selection box right to the Edit button. Pressing this button transfers the selected command to the input field. If your latest executed command is not contained in the list, you will have to reload the frame with the help of your browser's menus.

Populating the package description file . ComPact can be instructed to create entries in the package description file PkgDesc of your package. This is done by scanning the package for files whose names match certain file classifications. File classifications are regular expressions or shell globbing patterns, which may be combined by the logical operators `and', `or', and `not'. For every match found, an appropriate declaration is added to the package description file PkgDesc. To view the classification rules used by pkgm, issue the command pkgm -dumpfc. To make pkgm use your own file classification rules, either define the resource ComPactFileClassifications or use the option -f or -file. Entries are only added at the end of the file after an appropriate notice; existing entries are never changed or removed.