#
#Initial revision
#
#
################################################################################
# Install.cmd script for installation of the SpotWare Plus (Multiple Gun)
# add-on package.
#
# Use:
#      this file will be included by the root to the main installation script
#      with the specific 'include' command.
#
################################################################################

#############
# Beginning #
#############

echo -text " "
echo -text "Installing SpotWare Plus option"

#################################################
# Base national Language Dependent files (text) #
#################################################
text -filename $BOOTPATH/sw_elog.$LANG -package 0
text -filename $BOOTPATH/sw_rapid.$LANG -package 0

#
##############################################
# Rapid national Language Independent files  #
##############################################
fileexist -path dap -label NO_NEW_DIR
mkdir -path dap
#NO_NEW_DIR

copy -from $BOOTPATH/SWBAS.SYS -to dap/SWBAS.SYS
copy -from $BOOTPATH/SWTOL.SYS -to dap/SWTOL.SYS
copy -from $BOOTPATH/SWPRC.SYS -to dap/SWPRC.SYS
copy -from $BOOTPATH/SWUSRC.SYS -to SWUSRC.SYS
copy -from $BOOTPATH/SWUSRF.SYS -to SWUSRF.SYS
copy -from $BOOTPATH/swsupb_p.eng -to SWSUPB.MOD
copy -from $BOOTPATH/swtimr_s.eng -to SWTIMER.SYS

#
#######################################
# National Language Independent files #
#######################################

# Rapid : cfg (Rapid programming rules)
config -filename $BOOTPATH/swmmc.cfg -domain MMC

# EIO   : cfg (definitions & configurations)
# Select swboard type and position 
#include -path $BOOTPATH/swboard.cmd
config -filename $BOOTPATH/sweio.cfg -domain EIO

# CAB   : cfg (definitions & configurations)
config -filename $BOOTPATH/swsysrp.cfg -domain SYS
config -filename $BOOTPATH/swsys.cfg -domain SYS -internal

#######
# End #
#######

#
#END
echo -text "...done"

#
# The following has to be done afterwards in the base install.cmd script:
#
#    new -resource cab
#    # Make System WarmStart (use startup.cmd):
#    restart
#
