280. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/18/2019 5:55:27 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

280.1 Files compared

# Location File Last Modified
1 MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_DevOps\mccf_devops\scripts\shell createGitRepos.sh Wed Apr 3 02:27:18 2019 UTC
2 MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_DevOps\mccf_devops\scripts\shell createGitRepos.sh Tue Apr 16 15:27:28 2019 UTC

280.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 142
Changed 1 2
Inserted 0 0
Removed 0 0

280.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

280.4 Active regular expressions

No regular expressions were active.

280.5 Comparison detail

  1   #!/bin/bas h
  2   #
  3  
  4   # Script v ariables
  5   scriptname =${0}
  6   scriptBase ="$( cd "$ ( dirname  "$scriptna me" )";  p wd)"
  7   ROOT_DIR=" $( cd ../. ./..;  pwd )"
  8   TIMESTAMP= `date "+%Y %m%d_%H%M% S"`
  9   LOG_DIR="$ {ROOT_DIR} /logs"
  10   LOGFILE="$ {LOG_DIR}/ createRepo s_${TIMEST AMP}.log"
  11  
  12   #source th e commonfu nctions
  13   . "$script Base/commo nfunctions .sh"
  14   DEBUG "scr iptBase: $ {scriptBas e}"
  15   DEBUG "ROO T_DIR: ${R OOT_DIR}"
  16   DEBUG "log ging to: $ {LOGFILE}"
  17   echo
  18   DEBUG "Che ck if log  directory  exists and  if not, c reate it"
  19   if [[ ! -d  ${LOG_DIR } ]]; then
  20     mkdir -Z  ${LOG_DIR }
  21   fi
  22  
  23   # Detect p roper usag e
  24   if [ "$#"  -ne "1" ]  ; then
  25     echo -e  "ERROR: Us age: $0 <m y_repo.lst >"
  26     exit 1
  27   fi
  28  
  29   ## Script  variables
  30   REPO_FILE= "${1}"
  31  
  32   if [[ ! -e  ${REPO_FI LE} ]]
  33   then
  34     DEBUG "$ {REPO_FILE } not foun d, exiting "
  35     exit 1
  36   fi
  37   echo "proc essing: ${ REPO_FILE} "
  38  
  39   getBBCrede ntials
  40  
  41   for repo i n $(cat ${ REPO_FILE} ) ; do
  42     PROJECT_ NAME="${re po}"
  43     PROJECT_ PATH="${RO OT_DIR}/${ PROJECT_NA ME}"
  44     # Make s ure the re quired dir ectories d on't exist
  45     if [ -e  "${PROJECT _PATH}" ]  ; then
  46       echo - e "ERROR:  Project ${ PROJECT_NA ME} alread y exists!"
  47     else
  48       # crea te the new  project
  49       echo - e "INFO: C reating ne w git repo sitory ${P ROJECT_NAM E}..."
  50       echo - e "======= ========== ========== ========== ========== ====="
  51       cd ${R OOT_DIR}
  52       mkdir  ${PROJECT_ NAME}
  53       cd ${P ROJECT_PAT H}
  54       git in it
  55       echo " #README" >  README.md
  56       # Sinc e this is  a new repo sitory we  need to ha ve at leas t one comm it
  57       git ad d README.m d
  58       git co mmit --qui et -m "[Pr oject] Ini tial Maste r Repo Com mit"
  59       #creat e remote r epository
  60       curl - X POST -v  -u "${USER NAME}:${PA SSWD}" htt ps://api.b itbucket.o rg/2.0/rep ositories/ halfaker/$ {PROJECT_N AME} -H "C ontent-Typ e: applica tion/json"  -d '{"scm ": "git",  "is_privat e": true,  "project":  {"key": " MCCF"}}'
  61       
  62       USEROR IGIN="http s://${USER NAME}:${PA SSWD}@bitb ucket.org/ halfaker/$ {PROJECT_N AME}.git"
  63       git re mote add o rigin http s://bitbuc ket.org/ha lfaker/${P ROJECT_NAM E}.git
  64       git pu sh -u ${US ERORIGIN}  --all
  65       git pu sh -u ${US ERORIGIN}  --tags
  66       echo
  67     fi
  68   done
  69   # CONTACT  INFO
  70   CONTACT="L ee Benhart PII  or  DNS . URL "
  71  
  72   exit