[opencoe-cvs] coekernel/src/COE/src/COE/data/NET_SERVER/TESTAPP-SOFTWARE-1.0.0.0-COE_ALL/SegDescrip
Status: Alpha
Brought to you by:
rbroberg
Update of /cvsroot/opencoe/coekernel/src/COE/src/COE/data/NET_SERVER/TESTAPP-SOFTWARE-1.0.0.0-COE_ALL/SegDescrip
In directory sc8-pr-cvs1:/tmp/cvs-serv13929/NET_SERVER/TESTAPP-SOFTWARE-1.0.0.0-COE_ALL/SegDescrip
Added Files:
DEINSTALL LICENSE PostInstall PreInstall ReleaseNotes SegInfo
SegName VERSION
Log Message:
Add the NET_SERVER/TESTAPP to the COE Kernel for installation verification.
--- NEW FILE: DEINSTALL ---
#!/usr/bin/perl -I /h/COE/lib
use coe_lib;
my $SEGMENT;
my $INSTALL_DIR;
my $TIMESTAMP;
sub getTimeF;
# Set segment name
$SEGMENT="TESTAPP";
# Set installation directory
$INSTALL_DIR=$ENV{'INSTALL_DIR'};
if ( "$INSTALL_DIR" eq "" ) { $INSTALL_DIR="/h/$SEGMENT"; }
# Get current time
$TIMESTAMP=getTimeF("YYYYMMDD hh:mm:ss");
# Execute DEINSTALL
# Note: this is for impacts outside the
# Segments directory which will be
# removed after this runs
print "$SEGMENT [$TIMESTAMP]: Executing DEINSTALL $INSTALL_DIR\n";
# Exit gracefully
exit 0;
--- NEW FILE: LICENSE ---
This file is free to all.
--- NEW FILE: PostInstall ---
#!/usr/bin/perl -I /h/COE/lib
use coe_lib;
my $INSTALL_DIR;
my $JAVA;
my $JAVA_HOME;
my $SEGMENT;
my $TIMESTAMP;
sub getTimeF;
sub sedFile;
#------------------------------------------------------------------------------|
# Set the Segment Name
#------------------------------------------------------------------------------|
$SEGMENT="TESTAPP";
#------------------------------------------------------------------------------|
# Define the Launch and Icon/Menu Scripts
#------------------------------------------------------------------------------|
my $sysdrive=$ENV{'SystemDrive'};
my @NTScripts=("../bin/TESTAPP_launch.pl",
"../bin/testapp.bat");
my @Scripts=("../bin/TESTAPP_launch.pl",
"../data/Icons/TESTAPP.Icon",
"../data/Menus/TESTAPP.Menu",
"../bin/testapp");
#------------------------------------------------------------------------------|
# Set the installation directory
# If it is already set, tweak the launch Scripts
#------------------------------------------------------------------------------|
$INSTALL_DIR=$ENV{'INSTALL_DIR'};
if ( "$INSTALL_DIR" eq "" ) {
$INSTALL_DIR="/h/$SEGMENT";
} else {
if ( "$sysdrive" ne "" ) {
sedFile ("/h/\\\$SEG", "$INSTALL_DIR", "false", @NTScripts);
sedFile ("rem INSTALL_DIR", "set INSTALL_DIR", "true", @NTScripts);
} else {
sedFile ("/h/\\\$SEG", "$INSTALL_DIR", "false", @Scripts);
sedFile ("#INSTALL_DIR", "INSTALL_DIR", "false", @Scripts);
}
}
#------------------------------------------------------------------------------|
# If this is NT, set the installation drive
# If it is already set, tweak the launch
#------------------------------------------------------------------------------|
my $sysdrive=$ENV{'SystemDrive'};
if ( "$sysdrive" ne "" ) {
my $appdrive=$ENV{'INSTALL_DRIVE'};
if ( "$appdrive" ne "D:" ) {
sedFile ("D:", "$appdrive", "false", @Scripts);
sedFile ("D:", "$appdrive", "false", @NTScripts);
sedFile ("rem INSTALL_DRIVE", "set INSTALL_DRIVE", "true", @NTScripts);
}
}
#------------------------------------------------------------------------------|
# Set the java_home directory
# If it is already set, tweak the launch Scripts
#------------------------------------------------------------------------------|
$JAVA_HOME=$ENV{'JAVA_HOME'};
if ( "$JAVA_HOME" eq "" ) {
$JAVA_HOME="/h/COE/Comp/JAVA2";
} else {
if ( "$sysdrive" ne "" ) {
sedFile ("/h/COE/Comp/JAVA2", "$JAVA_HOME", "false", @NTScripts);
sedFile ("rem JAVA_HOME", "set JAVA_HOME", "true", @NTScripts);
} else {
sedFile ("/h/COE/Comp/JAVA2", "$JAVA_HOME", "false", @Scripts);
sedFile ("#JAVA_HOME", "JAVA_HOME", "false", @Scripts);
}
}
#------------------------------------------------------------------------------|
# Set the java command
# If it is already set, tweak the launch Scripts
#------------------------------------------------------------------------------|
$JAVA=$ENV{'JAVA'};
if ( "$JAVA" eq "" ) {
$JAVA="$JAVA_HOME/bin/java";
} else {
if ( "$sysdrive" ne "" ) {
sedFile ("\\\$JAVA_HOME/bin/java", "$JAVA_HOME\\$JAVA", "false", @NTScripts);
sedFile ("rem JAVA", "set JAVA", "true", @NTScripts);
} else {
sedFile ("#JAVA=", "JAVA=", "false", @Scripts);
sedFile ("\\\$JAVA_HOME/bin/java", "$JAVA_HOME/$JAVA", "false", @Scripts);
}
}
#------------------------------------------------------------------------------|
# If this is NT, change the directory character in the Icon and Menu Scripts
#------------------------------------------------------------------------------|
my $sysdrive=$ENV{'SystemDrive'};
if ( "$sysdrive" ne "" ) {
sedFile ("/", "\\", "false", @NTScripts);
}
#------------------------------------------------------------------------------|
# Get the current time;
#------------------------------------------------------------------------------|
$TIMESTAMP=getTimeF("YYYYMMDD hh:mm:ss");
#------------------------------------------------------------------------------|
# Execute the Segment Specfic PostInstall
#------------------------------------------------------------------------------|
print "$SEGMENT [$TIMESTAMP]: Executing PostInstall $INSTALL_DIR\n";
#------------------------------------------------------------------------------|
# Exit gracefully
#------------------------------------------------------------------------------|
exit 0;
--- NEW FILE: PreInstall ---
#!/usr/bin/perl -I /h/COE/lib
use coe_lib;
my $SEGMENT;
my $INSTALL_DIR;
my $TIMESTAMP;
sub getTimeF;
# Set the Segment Name
$SEGMENT="TESTAPP";
# Set the install directory
$INSTALL_DIR=$ENV{'INSTALL_DIR'};
if ( "$INSTALL_DIR" eq "" ) { my $INSTALL_DIR="/h/$SEGMENT"; }
# Get the current time;
my $TIMESTAMP=getTimeF("YYYYMMDD hh:mm:ss");
# Execute the PreInstall
print "$SEGMENT [$TIMESTAMP]: Executing PreInstall $INSTALL_DIR\n";
# Exit gracefully
exit 0;
--- NEW FILE: ReleaseNotes ---
================================================================================
1.0 Description
================================================================================
Source Name: OpenCOE Test Segment
Source Author(s): Ron Broberg
Source Contact: ron...@ya...
Source Site: http://opencoe.org
Segment FTP: ftp://opencoe.org/pub/rhinohide/OpenCOE
Source Version: 1.0.0.0
Source Date: Jan 31, 2002
License: GNU Lesser General Public License, v2.1
Segment Name: OpenCOE Testapp
Segment Prefix: TMPLATE
Segment Author: Ron Broberg
Segment Contact: ron...@ya...
Segment Site: http://www.opencoe.org
Segment FTP: ftp://opencoe.org/usr/rhinohide/OpenCOE
Segment Version: 1.0.0.0
Segment Date: January 31, 2002
Description:
Test Segment for COEInstaller Test
================================================================================
2.0 Segment History
================================================================================
2002 01 31 - Initial Segment Build
================================================================================
3.0 Compilation Notes
================================================================================
<List any special compilation instructions here>
================================================================================
4.0 Configuration Files
================================================================================
<List any configuration files and short description here>
================================================================================
5.0 Runtime Parameters
================================================================================
<List any run time parameters and short description here>
================================================================================
6.0 Executables
================================================================================
<List the segment executables, command line argments, and description here>
================================================================================
7.0 Initialization Procedures
================================================================================
<List any special initializtion procedures here>
================================================================================
8.0 Log Files
================================================================================
<List any log files and short description here>
================================================================================
9.0 Debug
================================================================================
<List any debug procedures here>
================================================================================
10.0 Deinstallation
================================================================================
<List any special deinstallation instructions here>
================================================================================
11.0 Known Issues
================================================================================
<List known problems here>
================================================================================
12.0 Other
================================================================================
<List any other information here>
--- NEW FILE: SegInfo ---
[Hardware]
$CPU:ANY
$OPSYS:COE
$DISK:10
$MEMORY:10
[Icons]
TESTAPP.Icon:STAFF
[Menus]
TESTAPP.Menu:STAFF.main
[Requires]
[Conflicts]
[Security]
UNCLASS
--- NEW FILE: SegName ---
$TYPE:SOFTWARE
$NAME:Testapp
$PREFIX:TESTAPP
$SEGMENT:Staff Acct Grp:STAFF:/h/AcctGrps/Staff
--- NEW FILE: VERSION ---
1.0.0.0 : 01/31/2002 : 12:10
|