instmodsh revision 7c478bd95313f5f23a4c958a745db2134aa03244
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny################################################################################
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan ZelenyAvailable commands are:
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny f [all|prog|doc] - List installed files of a given type
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny d [all|prog|doc] - List the directories used by a module
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny v - Validate the .packlist - check for missing files
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny t <tarfile> - Create a tar archive of the module
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny q - Quit the module
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny $reply =~ /^f\s*/ and do
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce if (eval { @files = $Inst->files($module, $class); })
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce $reply =~ /^d\s*/ and do
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce if (eval { @dirs = $Inst->directories($module, $class); })
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce $reply =~ /^t\s*/ and do
3d28e0e560b787b5c57ed7327d184310342a7e38Jakub Hrozek################################################################################
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan ZelenyAvailable commands are:
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce l - List all installed modules
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce m <module> - Select a module
8b1f2574ce7a964965a18ab047ab09c4694380c4Jan Zeleny q - Quit the program
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce print("Installed modules are:\n ", join("\n ", @Modules), "\n");
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce $reply =~ /^m\s+/ and do
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce################################################################################
6ff0d2242fe93d694b81b29ab12289db4859e1dcSimo Sorce################################################################################