# S020SMPL.def: Provides RDA Sampling Overview # $Id: S020SMPL.def,v 1.8 2008/02/25 17:32:55 mschenke Exp $ # ARCS: $Header: /home/cvs/repository/RDA_4/src/scripting/lib/modules/S020SMPL.def,v 1.8 2008/02/25 17:32:55 mschenke Exp $ # # Change History # 20080225 MSC Change the copyright notice. =head1 NAME S020SMPL - Provides RDA Sampling Overview =head1 DESCRIPTION This module provides an overview of the available RDA samples. =cut echo tput('bold'),'Processing Sampling module ...',tput('off') # Initialization var $RPT_DIRECTORY = getSetting('RPT_DIRECTORY') var $RPT_GROUP = getSetting('RPT_GROUP') var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' # Provide the overview debug ' Inside SMPL module, retrieving available sample archives/files' report overview var $TTL = '---+!! Sampling Overview' # Define a macro to add header and table heading macro header {import $TOC,$TTL if $TTL {write $TTL write $TOC write 'The content of this report can be obsolete if the background \ collection is running. It should be stopped for producing this \ report and for packaging the files.' var $TTL = undef } write $arg[0] write '|*File*| *Size*|' } # List the sample archives var $dir = catDir($RPT_DIRECTORY,'archive') if testDir('d',$dir) {prefix call header('---+ Sample Archives') loop $fil (grepDir($dir,concat('^',$RPT_GROUP,'_smp_'),'it')) write '|[[archive/',$fil,'][',$fil,']]| ',getSize(catFile($dir,$fil)),'|' if hasOutput(true) write $TOP } # List the sample archives var $dir = catDir($RPT_DIRECTORY,'sample') if testDir('d',$dir) {prefix call header('---+ Sample Files') loop $fil (grepDir($dir,concat('^',$RPT_GROUP,'_.*\.(dat|txt)$'),'in')) write '|[[sample/',$fil,'][',$fil,']]| ',getSize(catFile($dir,$fil)),'|' if hasOutput(true) write $TOP } # Generate the index contributions if the report has some content if isCreated() {toc '1:Sampling' toc '2:[[',getFile(),'][rda_report][Overview]]' } =begin credits =over 10 =item RDA 4.1: John Peeken, John Sobecki, Michel Villette. =back =end credits =head1 COPYRIGHT NOTICE Copyright (c) 2002-2008, Oracle. All rights reserved. =head1 TRADEMARK NOTICE Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. =cut