Created
August 9, 2021 14:19
-
-
Save cmaggiulli/2acdd28b75dca64b89366884437fce29 to your computer and use it in GitHub Desktop.
Produces an svn change report
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| CHANGE_REPORT=./change-report.log | |
| echo "Change list report for the last 7 days" > ${CHANGE_REPORT} | |
| DATE=`date` | |
| echo "Changes as of ${DATE}" >> ${CHANGE_REPORT} | |
| echo "======================================" >> ${CHANGE_REPORT} | |
| START_DATE=`date +"%Y-%m-%d" -d "7 days ago"` | |
| END_DATE=`date +"%Y-%m-%d" -d "tomorrow"` | |
| # Checking out empty directory to run svn commands against | |
| svn --username $0 --password "$1" --no-auth-cache co https://svn.int.domain.edu/repo empty --depth empty | |
| # Grabbing the commit history from empty dir | |
| svn --username $0 --password "$1" --no-auth-cache log -v -r '{'${START_DATE}'}':'{'${END_DATE}'}' ./empty >> ${CHANGE_REPORT} | |
| cat ${CHANGE_REPORT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment