8746d1cecfe66b053c41668dbda286f287c5e2c7
[matches/honours.git] / update.sh
1 #!/bin/bash
2
3 # Script to update all the honours stuff on a regular basis
4
5 # Need to cd to the directory, otherwise nothing will work
6 directory="/home/sam/Documents/University/honours/"
7 cd "$directory" 
8
9 echo "Committing at $(date)" >> commits.log
10 git add update.sh
11 git add papers
12 git add research
13 git add thesis/proposal/*.tex
14 git add thesis/proposal/*.pdf
15 git add thesis/proposal/*.bib
16 git add thesis/*.tex
17 git add thesis/*.pdf
18 git add thesis/*.bib
19 git add course/semester2
20
21
22 git commit -m "Automatic commit at $(date)"
23 if [ "$?" == 0 ]; then
24         git push git.ucc
25 fi

UCC git Repository :: git.ucc.asn.au