replica_status.bat #4

  • //
  • guest/
  • perforce_software/
  • sdp/
  • dev/
  • Server/
  • Windows/
  • p4/
  • common/
  • bin/
  • replica_status.bat
  • View
  • Commits
  • Open Download .zip Download (889 B)
:: ============================================================================
:: Copyright and license info is available in the LICENSE file included with
:: the Server Deployment Package (SDP), and also available online:
:: https://swarm.workshop.perforce.com/projects/perforce-software-sdp/view/main/LICENSE
:: ----------------------------------------------------------------------------

set current_script_dir=%~p0
call %current_script_dir%p4env.bat %1s
if errorlevel 1 (
   echo Replica status aborted - invalid config file found.
   echo .
   exit /B 1
)
set LOG=%LOGS_DIR%\replica_status.log

@call %SCRIPTS_DIR%\p4login.bat
%SDP_INSTANCE_BIN_DIR%\p4 -p %P4PORT% -u %SDP_P4SUPERUSER% pull -lj > %LOG% 2>&1

%SCRIPTS_DIR%\blat.exe -install %mailhost% %admin% 
%SCRIPTS_DIR%\blat.exe %LOG% -to %maillist% -subject "%COMPUTERNAME% %SDP_INSTANCE_P4SERVICE_NAME% Daily Replica Status"
# Change User Description Committed
#7 22929 Robert Cowham Underscore version of wrapper script.
#6 20595 Robert Cowham New replica-status command
Add corresponding function
Improve end of line handling when logging
#5 16638 C. Thomas Tyler Routine merge down to dev from main using:
p4 merge -b perforce_software-sdp-dev
#4 16029 C. Thomas Tyler Routine merge to dev from main using:
p4 merge -b perforce_software-sdp-dev
#3 11463 Russell C. Jackson (Rusty) Updated dev to prepare for Summit agreed changes.
#2 10998 Robert Cowham Fix problems with replica_status emailing.
#1 10961 C. Thomas Tyler Merge down from main.
//guest/perforce_software/sdp/main/Server/Windows/p4/common/bin/replica_status.bat
#1 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.