declare Version=2.1.1
#------------------------------------------------------------------------------
# Copyright (c) Perforce Software, Inc., 2007-2014. All rights reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1 Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PERFORCE
# SOFTWARE, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
#------------------------------------------------------------------------------
#==============================================================================
# Standard Environment for bash scripts.
# Use 'set -a' mode to export everything in this file.
set -a
# Require variables to be declared.
set -u
# Set aliaes for common commands. This is a safety/security precaution to
# help ensure intended commands are run, rather than identically named
# programs elsewhere in the PATH. Paths may need to adjusted if run on
# different systems.
alias rm=/bin/rm
alias mkdir=/bin/mkdir
alias mkpath="/bin/mkdir -p"
alias printf="/usr/bin/printf"
# Initialize GARBAGE to be empty. This contains a list of files to be
# removed upon termination of the script.
declare GARBAGE=""
declare RGARBAGE=""
# Provide a baseline default VERBOSITY. Scripts may override this to define
# a default for a specific script. Script users may override this on a per-run
# basis. Scale:
# 1=errors only
# 2=errors and warnings
# 3=normal
# 4=verbose
declare -i VERBOSITY=5
# Store just the name of the current script, useful for logging.
declare THISSCRIPT=${0##*/}
# Store the initial command line in $CMDLINE, useful for logging.
declare CMDLINE="$0 $*"
# Initialize the NO_OP ("no operation") test mode. If set to 1, scripts
# interpret this to mean "show what would be done, without executing any
# data-affecting commands.":w
declare -i NO_OP=0
# Globals for runCmd, containing last command, its exit code and output.
declare CMDLAST=""
declare -i CMDEXITCODE=0
declare CMDOUTPUT=""
# Globals for runRemoteCmd, containing last command, its exit code and output.
declare RCMDLAST=""
declare -i RCMDEXITCODE=0
declare RCMDOUTPUT=""
# Header, 79 characters of screen-splitting divider.
declare H="\n==============================================================================="
# At the end of this file, return to default behavior, undoing 'set -a' above.
set +a
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #11 | 27761 | C. Thomas Tyler |
Released SDP 2020.1.27759 (2021/05/07). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
| #10 | 26403 | C. Thomas Tyler |
Released SDP 2019.3.26400 (2020/03/28). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
| #9 | 25245 | C. Thomas Tyler |
Released SDP 2019.1.25238 (2019/03/02). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
| #8 | 22685 | Russell C. Jackson (Rusty) | Update main with current changes from dev. | ||
| #7 | 22185 | C. Thomas Tyler |
Released SDP 2017.2.22177 (2017/05/17). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
| #6 | 21532 | C. Thomas Tyler |
Released SDP 2016.2.21528 (2017/01/14). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
| #5 | 21087 | C. Thomas Tyler |
Added H1 and H2 headers to be used for better cosmetics in scripts. Non-functional change; by-passing precommit review. #review-21088 |
||
| #4 | 20390 | C. Thomas Tyler |
Released SDP 2016.1.20387. Copy Up using 'p4 copy -r -b perforce_software-sdp-dev', with selective removal of changes related to work-in-progress files. |
||
| #3 | 15856 | C. Thomas Tyler |
Replaced the big license comment block with a shortened form referencing the LICENSE file included with the SDP package, and also by the URL for the license file in The Workshop. |
||
| #2 | 13587 | C. Thomas Tyler |
Copy up of recent minor dev branch changes to auxiliary scripts and comments. No core SDP functionality changes. |
||
| #1 | 10148 | C. Thomas Tyler | Promoted the Perforce Server Deployment Package to The Workshop. |