website

source code for the ttmaths.uk website
Log | Files | Refs | README

push.sh (591B)


      1 #!/bin/sh
      2 
      3 # cd ..
      4 # git clone --mirror https://git.ttmaths.uk/website.git
      5 # cd website.git
      6 # git --bare update-server-info
      7 # mv hooks/post-update.sample hooks/post-update
      8 # cp ../website/.git/description description
      9 # cd ../website
     10 # git remote add local ../website.git
     11 local=../website.git
     12 
     13 cd "$local"
     14 git remote update --prune
     15 cd -
     16 
     17 git push local
     18 
     19 mkdir stagit
     20 cd stagit
     21 stagit ../"$local"
     22 cp log.html index.html
     23 cp ../stagit.css style.css
     24 cp ../icon.png logo.png
     25 cp ../icon.png favicon.png
     26 cp -r ../"$local" website.git
     27 cd ..
     28 
     29 ./serve.sh stagit git.ttmaths.uk
     30 
     31 rm -rf stagit
     32 
     33 git pull