#!/bin/sh
#----------------------------------------------------------------------
# File    : install.qar
# Version : 1.0
# Author  : C. Waddingham, PRL.
# Created : 10-November-2009
#	 
# Purpose : Installation script for Unix QA Reports module
#
# Usage   : ./install.qar [ -trace ]
#
# Notes   : This is a template which is read by pkg_qar_unix/build_qar_unix.pl.
#           The CS Database completes zz ... zz placeholders and 
#           saves the result in the CS Database 'Base Output Path'.
#
# History :
# Date       Ver  Init Comment
# 10-Nov-09  1.0  CW   Initial version based on compliance module install.cm
#----------------------------------------------------------------------

MODULE_ID="zzModuleIdentificationzz"

# Check Perl installed
#
which perl >/dev/null 2>&1

if [ $? -ne 0 ]; then

   echo "Perl version 5.6 or later required"
   echo
   echo "$MODULE_ID installation aborted"

   exit

fi

# Invoke the Perl installer
#
if [ -n "$1" ]; then

   perl -w setup.pl -trace

else

   perl setup.pl

fi

# End of script.
#
exit
