# shellcheck disable=SC2148 disable=SC2034 #============================================================================== # 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 #------------------------------------------------------------------------------ #------------------------------------------------------------------------------ # Version ID Block. Relies on +k filetype modifier. # VersionID='$Id: //p4-sdp/dev_rebrand/Server/Unix/p4/common/lib/libp4u.sh#3 $ $Change: 31617 $' #============================================================================== # Library Functions. #------------------------------------------------------------------------------ # Function: getLocalPath # # Input: # $1 - p4Path in depot or client syntax, e.g. "//depot/main/foo.c" # # Usage Example: localPath=$(getLocalPath "//depot/main/foo.c") #------------------------------------------------------------------------------ function getLocalPath { local p4Path=$1 local localPath [[ -n "$p4Path" ]] || return localPath=$(p4 -ztag where "$p4Path"|grep "^\.\.\. path"|tail -1) localPath=${localPath#... path } localPath=${localPath%\/\.\.\.} echo -n "$localPath" }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 31617 | C. Thomas Tyler | Merged work from dev_c2s (development) stream to sibling dev_rebrand (sparsedev) stream. | ||
#2 | 31615 | C. Thomas Tyler |
First pass at rebranding changes, including: * Changes to remove 'swarm.' from Workshop URLS, so swarm.workshop -> workshop. * Changed URL for Copyright. * Renamed get_helix_binaries.sh -> get_p4_binaries.sh, with associated directory and doc changes. * Accounted for rename of HAS -> P4AS. * Changed HMS references to P4MS. * Replaced "Helix" and "Helix Core" references. * Renamed variables to reduce tech debt buildup induced by rebranding. * Changed default mount points: /hxdepots[-1,N] -> /p4depots[-1,N] /hxmetadata[1,2] -> /p4db[-1,2] /hxlogs -> /p4logs Also made some changes related to rebranding going out with r25.1. |
||
#1 | 31591 | C. Thomas Tyler | Populate stream //p4-sdp/dev_rebrand from //p4-sdp/dev. | ||
//p4-sdp/dev/Server/Unix/p4/common/lib/libp4u.sh | |||||
#1 | 31397 | C. Thomas Tyler | Populate -b SDP_Classic_to_Streams -s //guest/perforce_software/sdp/...@31368. | ||
//guest/perforce_software/sdp/dev/Server/Unix/p4/common/lib/libp4u.sh | |||||
#4 | 26395 | C. Thomas Tyler | Shellcheck compliance changes. | ||
#3 | 16029 | C. Thomas Tyler |
Routine merge to dev from main using: p4 merge -b perforce_software-sdp-dev |
||
#2 | 13582 | C. Thomas Tyler |
Updated template.sh and associated bash libraries. Added show_versions() standard function and a standard '-V' flag to access it. Added version value definitions to all bash library files. |
||
#1 | 10638 | C. Thomas Tyler | Populate perforce_software-sdp-dev. | ||
//guest/perforce_software/sdp/main/Server/Unix/p4/common/lib/libp4u.sh | |||||
#1 | 10148 | C. Thomas Tyler | Promoted the Perforce Server Deployment Package to The Workshop. |