#!/bin/bash
#==============================================================================
# Copyright and license info is available in the LICENSE file included with
# the Server Deployment Package (SDP), and also available online:
# https://workshop.perforce.com/view/p4-sdp/main/LICENSE
#------------------------------------------------------------------------------
#==============================================================================
# Declarations and Environment
# Version ID Block. Relies on +k filetype modifier.
#------------------------------------------------------------------------------
# shellcheck disable=SC2016
declare VersionID='$Id: //p4-sdp/r26.1.0/tools/package_downloads.sh#1 $ $Change: 33565 $'
declare VersionStream=${VersionID#*//}; VersionStream=${VersionStream#*/}; VersionStream=${VersionStream%%/*};
declare VersionCL=${VersionID##*: }; VersionCL=${VersionCL%% *}
declare Version=${VersionStream}.${VersionCL}
[[ "$VersionStream" == r* ]] || Version="${Version^^}"
# Allow override of P4U_HOME, which is set only when testing P4U scripts.
# These paths are relative to this script's own tools/ directory, which
# now lives inside whichever single //p4-sdp stream is currently checked
# out (the just-cut release stream, e.g. r26.1.0, for a GA release; dev
# for a '-P' pre-release) -- there is no longer a sibling branch
# directory to select between.
export P4U_HOME=${P4U_HOME:-../Server/Unix/p4/common/bin}
export P4U_LIB=${P4U_LIB:-../Server/Unix/p4/common/lib}
export P4U_ENV=$P4U_LIB/p4u_env.sh
export P4U_LOG=
P4U_LOG="/tmp/package_downloads.sdp.$(date +'%Y%m%d-%H%M%S').log"
# Environment isolation. For stability and security reasons, prepend
# PATH to include dirs where known-good scripts exist.
# known/tested PATH and, by implication, executables on the PATH.
export PATH=~/bin:$P4U_HOME:$PATH:.
export P4CONFIG=${P4CONFIG:-.p4config}
[[ -r "$P4U_ENV" ]] || {
echo -e "\\nError: Cannot load environment from: $P4U_ENV\\n\\n"
exit 1
}
declare BASH_LIBS=$P4U_ENV
BASH_LIBS+=" $P4U_LIB/libcore.sh"
BASH_LIBS+=" $P4U_LIB/libp4u.sh"
for bash_lib in $BASH_LIBS; do
# shellcheck disable=SC1090
source "$bash_lib"
done
declare -i SilentMode=0
declare AppHome=${PWD%/*}
declare ExcludesCfg=$AppHome/tools/excludes.downloads.cfg
declare CommonFilesList=$AppHome/tools/common_files.txt
declare TmpDir=
declare SDPVersion=
declare SDPUnixVersion=
declare SDPWindowsVersion=
declare DownloadsDir=
declare TarFile=
declare StaticTarFile=
declare ZipFile=
declare StaticZipFile=
declare UnixWorkingDir=
declare WindowsWorkingDir=
declare ChangeFile=
declare OutFile=
declare Changelist=
export VERBOSITY=3
#==============================================================================
# Local Functions
#------------------------------------------------------------------------------
# Function: terminate
function terminate
{
# Disable signal trapping.
trap - EXIT SIGINT SIGTERM
# Don't litter.
cleanTrash
vvmsg "$THISSCRIPT: EXITCODE: $OverallReturnStatus"
# Stop logging.
[[ "${P4U_LOG}" == off ]] || stoplog
# With the trap removed, exit.
exit "$OverallReturnStatus"
}
#------------------------------------------------------------------------------
# Function: usage (required function)
#
# Input:
# $1 - style, either -h (for short form) or -man (for man-page like format).
#------------------------------------------------------------------------------
function usage
{
declare style=${1:--h}
echo "USAGE for $THISSCRIPT version $Version:
$THISSCRIPT [-f] [-s] [-o] [-P] [-L <log>] [-si] [-D]
or
$THISSCRIPT [-h|-man|-V]
"
if [[ $style == -man ]]; then
echo -e "
DESCRIPTION:
Create SDP distribution package files, *.tgz files for
UNIX/Linux and *.zip for Windows, from the latest files
in the current stream checkout (the just-cut release stream,
e.g. //p4-sdp/r26.1.0, for a GA release, or //p4-sdp/dev for
a pre-release via '-P').
This must be run from a release workspace client switched
to the stream you intend to package -- this script packages
whatever stream your current checkout happens to be, it does
not select a branch/stream itself. For a GA release, this
means running from the release stream cut for this release,
NOT from main -- main only carries \"MAIN\"-tagged script/doc
versions; the release stream carries the correctly regenerated,
release-tagged versions (see doc/ReleaseProcessOverview.md).
Prior to packaging, a variety of checks are done to ensure
the latest files are synced, the user is logged in, no
files are checked out in the current stream, etc.
An exclusion config file defines files and directories
to be excluded from packaging. This exclusion config
file has file name per line, which may include the
'*' wild card. This helps ensure only files that belong
in the package are shipped.
The exclusion config file can also specify directories to be
excluded, which start with a 'D:' prefix.
The exclusion config file is:
$ExcludesCfg
The generated tar files for UNIX/Linux are:
* sdp.Unix.<YYYY>.<N>.<BUILD>.tgz, the version-identified file.
* sdp.Unix.tgz, the same contents in a consistently named file.
The generated zip files Windows are:
* sdp.Windows.<YYYY>.<N>.<BUILD>.zip, the version-identified file.
* sdp.Windows.zip, the same contents in a consistently name file.
OPTIONS:
-P Mark this as a pre-release version. You must ALSO already be
running from a release workspace client switched to //p4-sdp/dev
(this flag does not switch streams for you; it only changes
naming and behavior, described below). The generated tarfile
name format changes, from sdp.<Platform>.<YYYY>.<N>.<tgz_or_zip>
to sdp.<Platform>.<YYYY>.<N>-DEV-PRE-RELEASE.<BUILD>.<tgz_or_zip>.
With '-P' the sdp.Unix.tgz and sdp.Windows.zip tar files, which
always represent the latest GA release, are not updated.
-f Force creation of target tar/zip file, replacing an existing
one if necessary. The default behavior is to abort if
the target package files already exists.
-o Proceed even if files are opened in Perforce and/or not synced
to the head revision. This may be useful for testing purposes.
By default, we abort if any files are checked out, or if files
are not syncd to the head revision. This option is not suitable
for creating a distribution file that will be submitted.
-L <log>
Specify the path to a log file, or the special value 'off' to disable
logging. By default, all output (stdout and stderr) goes to:
$(dirname "${P4U_LOG}").
NOTE: This script is self-logging. That is, output displayed on the
screen is simultaneously captured in the log file. Do not run this
script with redirection operators like '> log' or '2>&1', and do not
use 'tee.'
-si Operate silently. All output (stdout and stderr) is redirected to
the log only; no output appears on the terminal. This cannot be
used with '-L off'.
-D Set extreme debugging verbosity.
HELP OPTIONS:
-h Display short help message
-man Display man-style help message
-V Dispay version info for this script and its libraries.
FILES:
Common Files List file, listing files common to both UNIX/Linux and
Windows packages:
$CommonFilesList
Exclusions Config File, listing files to exclude from all packages:
$ExcludesCfg
EXAMPLES:
Typical Usage is with no arguments, run from a release workspace
client switched to the release stream being shipped, e.g.
//p4-sdp/r26.1.0:
cd $AppHome/tools
./package_downloads.sh
For a pre-release, run from a release workspace client switched
to //p4-sdp/dev instead, and add '-P':
cd $AppHome/tools
./package_downloads.sh -P
This must be run from a workspace that maps at least (and ideally
only) the one //p4-sdp stream being packaged.
SEE ALSO:
"
fi
exit 1
}
#==============================================================================
# Command Line Processing
declare -i shiftArgs=0
declare -i ForceTarCreation=0
declare -i AllowOpenedFiles=0
declare -i PreRelease=0
set +u
while [[ $# -gt 0 ]]; do
case $1 in
(-f) ForceTarCreation=1;;
(-o) AllowOpenedFiles=1;;
(-P) PreRelease=1;;
(-h) usage -h;;
(-man) usage -man;;
(-V) show_versions; exit 1;;
(-L) export P4U_LOG=$2; shiftArgs=1;;
(-si) SilentMode=1;;
(-D) set -x;; # Debug; use 'set -x' mode.
(*) usageError "Unknown arg ($1).";;
esac
# Shift (modify $#) the appropriate number of times.
shift; while [[ $shiftArgs -gt 0 ]]; do
[[ $# -eq 0 ]] && usageError "Bad usage."
shiftArgs=$shiftArgs-1
shift
done
done
set -u
#==============================================================================
# Command Line Verification
[[ $SilentMode -eq 1 && $P4U_LOG == off ]] && \
usageError "Cannot use '-si' with '-L off'."
#==============================================================================
# Main Program
trap terminate EXIT SIGINT SIGTERM
declare -i OverallReturnStatus=0
if [[ "${P4U_LOG}" != off ]]; then
touch "${P4U_LOG}" || bail "Couldn't touch log file [${P4U_LOG}]."
# Redirect stdout and stderr to a log file.
if [[ $SilentMode -eq 0 ]]; then
exec > >(tee "${P4U_LOG}")
exec 2>&1
else
exec >"${P4U_LOG}"
exec 2>&1
fi
initlog
fi
TmpDir=$(mktemp -d)
# A General Availability (GA) release tarball looks something like:
# sdp.Unix.2019.3.26571.gz.
#
# A Pre-Release tarball looks like:
# sdp.Unix.2020.1-DEV-PRE-RELEASE.27141.gz.
#
if [[ "$PreRelease" -eq 0 ]]; then
SDPVersion=$(cut -d '/' -f 3 < ../Version).$(cut -d '/' -f 4 < ../Version | cut -d ' ' -f 1)
else
SDPVersion=$(cut -d '/' -f 3 < ../Version)-DEV-PRE-RELEASE.$(cut -d '/' -f 4 < ../Version | cut -d ' ' -f 1)
fi
# shellcheck disable=SC2116 disable=SC2086
SDPVersion=$(echo $SDPVersion)
SDPUnixVersion=sdp.Unix.$SDPVersion
SDPWindowsVersion=sdp.Windows.$SDPVersion
DownloadsDir=$AppHome/downloads
TarFile=$DownloadsDir/$SDPUnixVersion.tgz
StaticTarFile=$DownloadsDir/sdp.Unix.tgz
ZipFile=$DownloadsDir/$SDPWindowsVersion.zip
StaticZipFile=$DownloadsDir/sdp.Windows.zip
UnixWorkingDir=/tmp/$SDPUnixVersion
WindowsWorkingDir=/tmp/$SDPWindowsVersion
ChangeFile=$TmpDir/change.p4s
OutFile=$TmpDir/output.txt
Changelist=
runCmd "p4 -ztag -F %TicketExpiration% login -s" \
"Checking login status." 0
if [[ -n "$CMDOUTPUT" ]]; then
msg "Verified: Logged into Perforce."
else
bail "Not logged into Perforce."
fi
runCmd "p4 -F %depotFile% -ztag opened ../..." \
"Checking for opened files in the current stream checkout."
if [[ -n "$CMDOUTPUT" ]]; then
if [[ $AllowOpenedFiles -eq 1 ]]; then
msg "Proceeding despite opened files being detected, due to -o flag."
else
if [[ $CMDOUTPUT == *"//"* ]]; then
bail "These files are checked out in the current stream checkout:\\n$CMDOUTPUT\\n\\nAborting."
else
bail "Could not determine if files are checked out in the current stream checkout. Output was:\\n$CMDOUTPUT\\n\\nAborting."
fi
fi
else
msg "Verified: No files checked out in the current stream checkout."
fi
runCmd "p4 -F %depotFile% -ztag sync -n ../..." \
"Checking for unsynced SDP files."
if [[ -n "$CMDOUTPUT" ]]; then
if [[ $AllowOpenedFiles -eq 1 ]]; then
msg "Proceeding despite unsynced files, due to -o flag."
else
if [[ $CMDOUTPUT == *"//"* ]]; then
bail "These files need to be synced:\\n$CMDOUTPUT\\n\\nAborting."
else
bail "Could not determine if files need to be synced. Output was:\\n$CMDOUTPUT\\n\\nAborting."
fi
fi
else
msg "Verified: No unsynced SDP files."
fi
msg "AppHome=[$AppHome] TF=[$TarFile] ZF=[$ZipFile] UWD=[$UnixWorkingDir] WWD=[$WindowsWorkingDir]."
# Cleanup from prior half-start runs if needed.
for d in "$UnixWorkingDir" "$WindowsWorkingDir"; do
runCmd "rm -rf $d" "Removing dir from earlier run: $d"
done
if [[ -r $TarFile ]]; then
if [[ $ForceTarCreation -eq 1 ]]; then
runCmd "rm -f $TarFile" \
"Removing existing tar file [$TarFile] due to '-f'." ||\
bail "Failed to remove existing tar file [$TarFile]. Aborting."
else
bail "Tar file already exists: [$TarFile]. Use '-f' to forcibly replace. Aborting."
fi
fi
if [[ -r $ZipFile ]]; then
if [[ $ForceTarCreation -eq 1 ]]; then
runCmd "rm -f $ZipFile" \
"Removing existing zip file [$ZipFile] due to '-f'." ||\
bail "Failed to remove existing zip file [$ZipFile]. Aborting."
else
bail "Zip file already exists: [$ZipFile]. Use '-f' to forcibly replace. Aborting."
fi
fi
msg "Creating empty working directories."
for workingDir in $UnixWorkingDir $WindowsWorkingDir; do
if [[ -d "$workingDir" ]]; then
runCmd "rm -rf $workingDir" \
"Removing old working dir [$workingDir]." ||\
bail "Failed to remove old working dir [$workingDir]. Aborting."
fi
runCmd "mkdir -p $workingDir" "Initializing empty working dir [$workingDir]." 0 ||\
bail "Failed to create empty working dir [$workingDir]. Aborting."
done
if [[ ! -d "$DownloadsDir" ]]; then
runCmd "mkdir -p $DownloadsDir" "Initializing empty downloads dir [$DownloadsDir]." 0 ||\
bail "Failed to create downloads dir [$DownloadsDir]. Aborting."
fi
#------------------------------------------------------------------------------
# Unix *.tgz file.
SDPRoot="$UnixWorkingDir/sdp"
runCmd "cp -pr ${AppHome} $SDPRoot" \
"Copying SDP package from the current stream checkout to Unix working dir." 0 ||\
bail "The copy to the working dir failed. Aborting."
cd "$SDPRoot" || bail "Failed to cd to SDP root in Working Dir [$SDPRoot]."
if [[ -r "$ExcludesCfg" ]]; then
while read -r excludeFile; do
[[ "$excludeFile" == "" || "$excludeFile" == "#"* ]] && continue
if [[ "$excludeFile" == "D:"* ]]; then
excludeDir=${excludeFile#D:}
msg "find $SDPRoot/ -type d -name \"$excludeDir\" -print -exec rm -r -f {} \\;"
find "$SDPRoot/" -type d -name "$excludeDir" -print -exec rm -r -f {} \;
else
msg "find $SDPRoot/ -type f -name \"$excludeFile\" -print -exec rm -f {} \\;"
find "$SDPRoot/" -type f -name "$excludeFile" -print -exec rm -f {} \;
fi
done < "$ExcludesCfg"
fi
cd "$UnixWorkingDir" || bail "Failed to cd to Working Dir [$UnixWorkingDir]."
# shellcheck disable=SC2071
if [[ "$(uname -s)" == Darwin && "$(uname -r)" > "18" ]]; then
runCmd "tar -cz --no-xattrs -f $TarFile sdp" ||\
bail "Failed to create tar file [$TarFile]. Aborting."
else
runCmd "tar -cz -f $TarFile sdp" ||\
bail "Failed to create tar file [$TarFile]. Aborting."
fi
#------------------------------------------------------------------------------
# Windows *.zip file.
SDPRoot="$WindowsWorkingDir/sdp"
runCmd "cp -pr ${AppHome} $SDPRoot" \
"Copying SDP package from the current stream checkout to Windows working dir." 0 ||\
bail "The copy to the working dir failed. Aborting."
cd "$SDPRoot" || bail "Failed to cd to SDP root in Working Dir [$SDPRoot]."
msg "\\nProcessing excludes from $ExcludesCfg:\\n$(cat "$ExcludesCfg")\\n"
if [[ -r "$ExcludesCfg" ]]; then
while read -r excludeFile; do
[[ "$excludeFile" == "" || "$excludeFile" == "#"* ]] && continue
# For Windows, exclude Unix stuff in places where Windows would otherwise be excluded.
excludeFile=${excludeFile//Windows/Unix}
if [[ "$excludeFile" == "D:"* ]]; then
excludeDir=${excludeFile#D:}
msg "find $SDPRoot/ -type d -name \"$excludeDir\" -print -exec rm -r -f {} \\;"
find "$SDPRoot/" -type d -name "$excludeDir" -print -exec rm -r -f {} \;
else
msg "find $SDPRoot/ -type f -name \"$excludeFile\" -print -exec rm -f {} \\;"
find "$SDPRoot/" -type f -name "$excludeFile" -print -exec rm -f {} \;
fi
done < "$ExcludesCfg"
fi
cd "$WindowsWorkingDir" || bail "Failed to cd to Working Dir [$WindowsWorkingDir]."
# Copy common files.
if [[ -r "$CommonFilesList" ]]; then
while read -r srcFileSpec; do
[[ "$srcFileSpec" == "" || "$srcFileSpec" == "#"* ]] && continue
# Prefix Unix working dir to relative path specified in the Common Files List file.
srcFileSpec="$UnixWorkingDir/sdp/$srcFileSpec"
tgtDir=${srcFileSpec//Unix/Windows}
msg "SFS=[$srcFileSpec] TD=[$tgtDir]"
tgtDir=${tgtDir%\*}
msg "TD2=[$tgtDir]"
tgtDir=${tgtDir%\/*}
msg "TD3=[$tgtDir]"
for srcFile in $srcFileSpec; do
msg "Copying [$srcFile] to [$tgtDir]."
if [[ -d "$srcFile" ]]; then
cp -pr "$srcFile" "$tgtDir" ||\
bail "Failure performing copy of common subdirs. Aborting."
else
cp -p "$srcFile" "$tgtDir" ||\
bail "Failure performing copy of common files. Aborting."
fi
done
done < "$CommonFilesList"
else
warnmsg "Skipping copy of common files from Unix to Windows, due to missing common files list [$CommonFilesList]."
OverallReturnStatus=1
fi
# Convert ASCII text files to Windows line endings before packaging.
for textFile in $(find . -type f -exec file {} \; | grep -E -i '(ascii|text)'| cut -d: -f1); do
convertedTextFile=.tmp.converted
awk 'sub("$", "\r")' "$textFile" > "$convertedTextFile"
mv -f "$convertedTextFile" "$textFile"
done
runCmd "zip -r $ZipFile sdp" ||\
bail "Failed to create tar file [$ZipFile]. Aborting."
runCmd "tar -tzf $TarFile" \
"Tar file [$TarFile] contains these elements:"
if [[ "$PreRelease" -eq 0 ]]; then
runCmd "cp -f -p $TarFile $StaticTarFile" \
"Updated static tar file [$StaticTarFile]." ||\
bail "Failed to update static tar file [$StaticTarFile]."
runCmd "cp -f -p $ZipFile $StaticZipFile" \
"Updated static zip file [$StaticZipFile]." ||\
bail "Failed to update static zip file [$StaticZipFile]."
fi
cd "$DownloadsDir" || bail "Failed to cd to downloads dir [$DownloadsDir]."
echo -e "Change: new\\n
Description:\\n\\tPackaged SDP $SDPVersion." > "$ChangeFile"
p4 change -i < "$ChangeFile" > "$OutFile" 2>&1
if ! grep -E 'Change \d+ created.' "$OutFile"; then
cat "$OutFile"
rm -f "$OutFile"
bail "Failed to create pending changelist. Aborting."
fi
# Parse the generated changelist number from the output file.
Changelist=$(cat "$OutFile")
Changelist=${Changelist#Change }
Changelist=${Changelist%% *}
# shellcheck disable=SC2086 disable=SC2116
Changelist=$(echo $Changelist)
runCmd "p4 -s rec -c $Changelist" \
"Reconciling in downloads dir [$DownloadsDir]." ||\
bail" Failed to reconcile changes."
if [[ "$PreRelease" -eq 0 ]]; then
runCmd "p4 -s delete -c $Changelist ...tgz ...zip" \
"Cleaning up old zip/tar files in downloads dir." ||\
bail" Failed to cleanup old zip/tar files."
runCmd "p4 describe -s $Changelist" \
"Showing generated change $Changelist." 1 1 0 ||\
bail" Failed to describe change $Changelist."
fi
msg "To complete packaging, run:\\n\\tp4 -s submit -c $Changelist\\n"
[[ -d "$TmpDir" ]] && rm -rf "$TmpDir"
if [[ $OverallReturnStatus -eq 0 ]]; then
msg "${H}\\nAll processing completed successfully.\\n"
else
msg "${H}\\nProcessing completed, but with errors. Scan above output carefully.\\n"
fi
msg "That took about $((SECONDS/3600)) hours $((SECONDS%3600/60)) minutes $((SECONDS%60)) seconds.\\n"
# See the terminate() function, which is really where this script exits.
exit $OverallReturnStatus
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 33565 | Claude (AI Agent by Anthropic) | Initial population of r26.1.0 from main. | ||
| //p4-sdp/main/tools/package_downloads.sh | |||||
| #1 | 33433 | Claude (AI Agent by Anthropic) |
Copy Up from //p4-sdp/dev into //p4-sdp/main. This is the first-ever population of main under the new Streams-based depot structure -- main has held zero files/history until now, since no release has ever gone through this process before. 463 files, covering the entire 2026.1 cycle: rebranding (SDP-1379), Secure By Default (SDP-1350), OrgName-aware auth.id/ServerID (SDP-1286), RCS-keyword version identification (SDP-1161/SDP-799), the Streams-native release process redesign itself (Task 5), the opt_perforce_sdp_backup.sh false-error fix, the P4D 2026.1 test-suite targeting, refreshed P4*.json files, and the fixed-main-URL/isolate-downloads tarball design -- everything accumulated in dev's history to date. Isolated paths (ai_dev_support/, Version, doc/*.html, doc/*.pdf, doc/gen/*.man.txt, doc/gen/sdp_install.cfg, Unsupported/doc/*.html, Unsupported/doc/*.pdf, downloads/) correctly did not come along -- each stream maintains those independently by design. Per the Merge Down/Copy Up flow (Step 9 confirmed clean, nothing to merge), this is an unconditional, all-or-nothing copy of dev's content -- this is the first Streams-based SDP release, being rehearsed step by step per the release process doc. Agent: Claude Code, Model: Claude Sonnet 5 (claude-sonnet-5), operating as bot_Claude_Anthropic. |
||
| //p4-sdp/dev/tools/package_downloads.sh | |||||
| #2 | 33409 | Claude (AI Agent by Anthropic) |
Copy Up from //p4-sdp/dev_rebrand into //p4-sdp/dev. This is the first promotion of dev_rebrand's work into dev since dev_rebrand was created (2025-05-24) -- 303 files, covering the entire 2026.1 rebranding effort (SDP-1379), the Secure By Default adaptation (SDP-1350), OrgName-aware auth.id/ServerID (SDP-1286), RCS-keyword version identification (SDP-1161/SDP-799), and the Streams-native release process redesign (Task 5) done this session, plus everything else accumulated in dev_rebrand's history before this session. Per the Merge Down/Copy Up flow, this is intentionally a full, unconditional blast-replace of dev's content from dev_rebrand -- all selectivity/care happened in the preceding Merge Down (dev -> dev_rebrand, changes 33407-33408), which absorbed Robert Cowham's independent dev-side work first so nothing of his is lost by this Copy Up. Two files are worth calling out since they might look alarming in isolation: - tools/mdcu.sh is deleted -- intentional, retired this session in favor of the two direct Streams commands now documented in doc/ReleaseProcessOverview.md. - tools/ReleaseProcessOverview.md is deleted -- this is a stale relic of a file move dev_rebrand made back in 2025-05-24 (tools/ -> doc/) that was never previously propagated to dev; the current, fully-rewritten doc/ReleaseProcessOverview.md is added/updated correctly by this same changelist. |
||
| #1 | 31397 | C. Thomas Tyler | Populate -b SDP_Classic_to_Streams -s //guest/perforce_software/sdp/...@31368. | ||
| //guest/perforce_software/sdp/tools/package_downloads.sh | |||||
| #14 | 29703 | C. Thomas Tyler | Fixed shellcheck issues. | ||
| #13 | 29702 | C. Thomas Tyler |
Adjusted so '-no-xattrs' option is passed to 'tar' command only on OS versions new enough to support it. Older versions don't need that option. |
||
| #12 | 29462 | C. Thomas Tyler |
Tweaked tarball create command to avoid getting annoying warning on tarball extract that looks someting like: tar: Ignorning unknown extended header keyword 'LIBARCHIVE.xattr.com.microsoft.defender.dlp.marker#C' |
||
| #11 | 27146 | C. Thomas Tyler |
Packaging refinements for Pre-Release mode. Fixed bug where old 'main' branch was shipped as a pre-release of dev. |
||
| #10 | 27127 | C. Thomas Tyler |
package_downloads.sh v1.4.0: * Added '-P' option to package a pre-release build. * Removed excess options from template. * Adapted PATH to work well with SDP r2020.1. |
||
| #9 | 25593 | C. Thomas Tyler |
Added static names for tar and zip files to simplify consumption. These are just copies of the numbered versions, always named "sdp.Unix.tgz" and "sdp.Windows.zip". Shellcheck compliance. |
||
| #8 | 22193 | C. Thomas Tyler | Fixed bug resulting in non-graceful ending of otherwise successful processing. | ||
| #7 | 21373 | C. Thomas Tyler | Enhanced output for packaging script. | ||
| #6 | 20794 | C. Thomas Tyler | Fixed bug with reconcile. | ||
| #5 | 20769 | C. Thomas Tyler | Bug fix. | ||
| #4 | 20643 | C. Thomas Tyler | Enhanced to save manual steps doing a 'p4 change' && 'p4 rec'. | ||
| #3 | 18621 | Russell C. Jackson (Rusty) |
18619 release Removed hard coding on paths for zip and tar in package_download.sh |
||
| #2 | 16787 | C. Thomas Tyler | Tweaked to handle subdirs. | ||
| #1 | 16339 | C. Thomas Tyler |
Adjusted to use 'downloads' rather than 'dist'. Enhanced docs. Fixed bug where script failed if 'downloads' directory didn't already exist. Removed '-s' (show tarfile contents) flag, and made showing contents the default behavior (thus making it behavve the same for UNIX/Linux and Windows, which always shows *.zip file contents.). |
||
| //guest/perforce_software/sdp/tools/dist.sh | |||||
| #9 | 12391 | C. Thomas Tyler |
Fixed cosmetic typos in comments and output. Fixed bug that preventd proper operation of '-n' no-op mode. Added missing reference to '-o' in usage. |
||
| #8 | 11526 | Russell C. Jackson (Rusty) |
Removed p4verify.pl from common files Updated dist.sh to work with relative paths and removed hard coding on tar path Created new distribution files. |
||
| #7 | 11525 | Russell C. Jackson (Rusty) | Updated Version and Release notes. | ||
| #6 | 10959 | C. Thomas Tyler | Added check for unsync'd files. | ||
| #5 | 10872 | C. Thomas Tyler |
Added Windows SDP into The Workshop: * Combined (back) into Unix SDP structure. * Avoided adding duplicate files p4verify.pl, p4review.(py,cfg). * Upgraded 'dist.sh' utility to produce both Unix and Windows packages (*.tgz and *.zip), adjusting line endings on text files to be appropriate for Windows prior to packaging. To Do: * Resolve duplication of [template_]configure_new_server.bat. * Merge test suites for Windows and Unix into a cohesive set. |
||
| #4 | 10753 | C. Thomas Tyler | Exlcuding cruft files. | ||
| #3 | 10751 | C. Thomas Tyler | More cleanup. | ||
| #2 | 10748 | C. Thomas Tyler |
Added safety check for checked out files. Updated exlcudes. |
||
| #1 | 10737 | C. Thomas Tyler | Added helper script to create SDP distro tar file. | ||